Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Create a sparse matrix from the given matrix of floats and indexes.
Options | Eigen matrix options. |
Mat | A type inheriting from Eigen::DenseBase with an arithmetic scalar 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 113 of file to_soa_sparse_matrix.hpp.