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>
26 const std::vector<int>
28 std::vector<int> v(A.nonZeros());
29 for (
int nze = 0; nze < A.nonZeros(); ++nze)
43 template <
typename T,
int R,
int C>
44 const std::vector<int>
46 Eigen::SparseMatrix<T, Eigen::RowMajor> B = A.sparseView();