You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Eigen overloads for model base methods like log_prob and unconstrain_array only accept Eigen::VectorXd inputs, which can require some data-reshaping/copying for downstream interfaces.
If these could be changed to Eigen::Ref<Eigen::VectorXd> (or overloads for these added), then the current Stan behaviour would be unchanged but interfaces could then pass Eigen::Map<Eigen::VectorXd> types and avoid extra copies
Current Version:
v2.35.0
The text was updated successfully, but these errors were encountered:
Summary:
The Eigen overloads for model base methods like
log_prob
andunconstrain_array
only acceptEigen::VectorXd
inputs, which can require some data-reshaping/copying for downstream interfaces.If these could be changed to
Eigen::Ref<Eigen::VectorXd>
(or overloads for these added), then the current Stan behaviour would be unchanged but interfaces could then passEigen::Map<Eigen::VectorXd>
types and avoid extra copiesCurrent Version:
v2.35.0
The text was updated successfully, but these errors were encountered: