1 #ifndef STAN_MATH_PRIM_MAT_FUN_CSR_EXTRACT_V_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_CSR_EXTRACT_V_HPP
6 #include <Eigen/Sparse>
27 const std::vector<int>
29 std::vector<int> v(A.nonZeros());
30 for (
int nze = 0; nze < A.nonZeros(); ++nze)
44 template <
typename T,
int R,
int C>
45 const std::vector<int>
47 Eigen::SparseMatrix<T, Eigen::RowMajor> B = A.sparseView();