Issue with modulus operator?

62 views
Skip to first unread message

Xiaowei Zhang

unread,
Feb 20, 2014, 8:11:14 AM2/20/14
to stan-...@googlegroups.com
Is there a modulus operator for integers in stan modelling language? Like % in C or %% in R?

The manual states that the modulus function fmod for real values "

can seriously hinder sampling and optimization efficiency for gradient-based methods (e.g., NUTS, HMC, BFGS) if applied to parameters (includ- ing transformed parameters and local variables in the transformed parameters or model block)."



Bob Carpenter

unread,
Feb 20, 2014, 8:46:23 AM2/20/14
to stan-...@googlegroups.com
No, but we should probably add one.

https://github.com/stan-dev/stan/issues/577

This would also be an easy issue to knock off for someone
looking to get their feet with with Stan development.

- Bob
> --
> You received this message because you are subscribed to the Google Groups "stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages