is_symmetric#
- is_symmetric(a, rtol=1e-10)[source]#
Is
aa symmetric matrix?- Parameters:
a (ndarray or sparse matrix) – Object to check for being a symmetric matrix.
rtol (float) – Relative tolerance with respect to the smallest entry in
athat is used to determine ifais symmetric.
- Returns:
Trueifais a symmetric matrix,Falseotherwise.- Return type:
bool