Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Construct from a var_value
with different inner vari_type
S | An eigen type that is not the same as T , but can be assigned to vari_value<T> . |
other | the value to assign |
vari_value<Matrix<double, -1, 1>>
and vari_value<Matrix<double, 1, -1>>
. As pointers those are not assignable to one another, but their inner matrix types are. So the var
has to make a new vari
and assign the inner matrices to that new vari
.