Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Create a sparse matrix from the given SoA matrix and indexes.
Options | Eigen matrix options. |
VarMatrix | A var_value with a dense vector inner type |
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 32 of file to_soa_sparse_matrix.hpp.