Skip to content

Commit

Permalink
fixed minor typo
Browse files Browse the repository at this point in the history
  • Loading branch information
danielturek committed Jun 2, 2024
1 parent d93b039 commit 35abd8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nimbleHMC/R/HMC_samplers.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ hmc_checkTarget <- function(model, targetNodes, hmcType) {
dists <- targetDists_unique
ADok <- rep(TRUE, length(dists))
for(i in seq_along(dists)) {
ADoak[i] <- model$getModelDef()$checkADsupportForDistribution(dists[i])
ADok[i] <- model$getModelDef()$checkADsupportForDistribution(dists[i])
}
if(!all(ADok))
stop(paste0(hmcType, ' sampler cannot operate on user-defined distributions which do not support AD calculations. Try using buildDerivs = TRUE in the definition the distributions: ', paste0(dists[!ADok], collapse = ', ')))
Expand Down

0 comments on commit 35abd8f

Please sign in to comment.