1#ifndef STAN_MATH_PRIM_FUN_CSR_EXTRACT_U_HPP
2#define STAN_MATH_PRIM_FUN_CSR_EXTRACT_U_HPP
26 const Eigen::SparseMatrix<T, Eigen::RowMajor>& A) {
27 std::vector<int> u(A.outerSize() + 1);
28 for (
int nze = 0; nze <= A.outerSize(); ++nze) {
43template <
typename T, require_eigen_dense_base_t<T>* =
nullptr>
46 Eigen::SparseMatrix<scalar_type_t<T>, Eigen::RowMajor> B
ref_type_t< T && > to_ref(T &&a)
This evaluates expensive Eigen expressions.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...