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

◆ is_symmetric()

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

Return true if the matrix is square, and no element not on the main diagonal is NaN.

Template Parameters
EigMatA type derived from EigenBase with dynamic rows and columns
Parameters
yMatrix to test
Returns
true if the matrix is square, and no element not on the main diagonal is NaN

Definition at line 24 of file is_symmetric.hpp.