Sorry about that --- it never should've went into the doc. There's
really not a good way to do integer floor or ceiling right now in Stan
(or round). I just added to the next release doc issue to get rid
of that doc. (Or we'll add the functions and update the doc.)
They have the signatures the way they do because it matches the
usage in the C++ library, but in C++ you can just assign a double
to an integer and it'll cast --- we explicitly stop users from doing
that in Stan.
So we'll need a floor and ceil function for integers,
maybe ifloor and iceil (to align with fmax and fmin and fabs).
The closest we have now is int_step, which is not very helpful
here, though could be hacked if the integers weren't too large.
There's already an issue:
https://github.com/stan-dev/stan/issues/374
and Michael's already raised objections because it's not
theoretically kosher with HMC (though in some interpolation
cases it'd be OK, which is why it's in the doc as such).
But then the real-valued versions are just as incompatible
and we already have those.
- 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/d/optout.