1#ifndef STAN_MATH_PRIM_FUN_SINGULAR_VALUES_HPP
2#define STAN_MATH_PRIM_FUN_SINGULAR_VALUES_HPP
21template <
typename EigMat, require_eigen_matrix_dynamic_t<EigMat>* =
nullptr,
22 require_not_st_var<EigMat>* =
nullptr>
25 return Eigen::Matrix<base_type_t<EigMat>, Eigen::Dynamic, 1>(0, 1);
27 return Eigen::JacobiSVD<Eigen::Matrix<value_type_t<EigMat>, Eigen::Dynamic,
29 to_ref(std::forward<EigMat>(m)))
auto singular_values(EigMat &&m)
Return the vector of the singular values of the specified matrix in decreasing order of magnitude.
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 ...