Construct a dense Eigen matrix from the CSR format components.
- Template Parameters
-
- Parameters
-
[in] | m | Number of matrix rows. |
[in] | n | Number of matrix columns. |
[in] | w | Values of non-zero matrix entries. |
[in] | v | Column index for each value in w. |
[in] | u | Index of where each row starts in w. |
- Returns
- Dense matrix defined by previous arguments.
- Exceptions
-
std::domain_error | If the arguments do not define a matrix. |
std::invalid_argument | if m/n/w/v/u are not internally consistent, as defined by the indexing scheme. Extractors are defined in Stan which guarantee a consistent set of m/n/w/v/u for a given sparse matrix. |
std::out_of_range | if any of the indices are out of range. |
Definition at line 35 of file csr_to_dense_matrix.hpp.