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,
auto singular_values(const EigMat &m)
Return the vector of the singular values of the specified matrix in decreasing order of magnitude.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...