This raises another point that a stan::math::var
is not considered a Boost::Real
and thus does not work well with all Boost Math functions. I think it would need some more things defined.
https://www.boost.org/doc/libs/1_71_0/boost/math/concepts/real_concept.hpp