Description
As mentioned in #2641, the math::size() overloads should have a return type consistent with Eigen's size() member to avoid compiler errors when calling code such as:
Eigen::VectorXd a(2);
a << 1, 2;
std::max(a.size(), stan::math::size(a));
Which resolves to:
std::max(size_t, Eigen::Index);
Current Version:
v4.4.0
Description
As mentioned in #2641, the
math::size()overloads should have a return type consistent with Eigen'ssize()member to avoid compiler errors when calling code such as:Which resolves to:
Current Version:
v4.4.0