Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ is_cholesky_factor_corr()

template<typename EigMat , require_eigen_matrix_dynamic_t< EigMat > * = nullptr>
bool stan::math::is_cholesky_factor_corr ( const EigMat &  y)
inline

Return true if y is a valid Cholesky factor, if the number of rows is not less than the number of columns, if there are no zero columns, and no element in matrix is NaN.

A Cholesky factor is a lower triangular matrix whose diagonal elements are all positive. This definition does not require a square matrix.

Template Parameters
EigMatA type derived from EigenBase with dynamic rows and columns
Parameters
yMatrix to test
Returns
true if y is a valid Cholesky factor, if the number of rows is not less than the number of columns, if there are no 0 columns, and no element in matrix is NaN

Definition at line 26 of file is_cholesky_factor_corr.hpp.