Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Create a sparse matrix from the given AoS matrix of vars and indexes.
Options | Eigen matrix options. |
MatrixVar | A type inheriting from Eigen::DenseBase with a scalar type of var_value |
Vec1 | Container type of the column indexes. |
Vec2 | Container type of the row indexes. |
m | Number of rows in matrix. |
n | Number of columns in matrix. |
w | Vector of non-zero values in matrix. |
u | Index of where each row starts in w, length equal to the number of rows plus one. |
v | Column index of each non-zero value, same length as w. |
Definition at line 66 of file to_soa_sparse_matrix.hpp.