Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Matrices and Linear Algebra >

SymmetricMatrixQ

SymmetricMatrixQ[m]
tests whether m is a symmetric matrix.
Test if a matrix is explicitly symmetric:
Test if a matrix is explicitly symmetric:
In[1]:=
Click for copyable input
Out[1]=
SymmetricMatrixQ works with SparseArray objects:
SymmetricMatrixQ works with symbolic matrices:
Use a different method for symmetric matrices:
Construct real-valued matrices for testing:
For the non-symmetric matrix m, the function just uses Gaussian elimination:
For the symmetric indefinite matrix mi, the function tries the Cholesky method first:
For the symmetric positive definite matrix mp, the function succeeds with the Cholesky method:
Determine if a sparse matrix is structurally symmetric:
For real-valued matrices, a matrix is Hermitian if and only if it is symmetric:
SymmetricMatrixQ[m] is effectively equivalent to m Equal Transpose[m]:
Real-valued symmetric matrices have all real eigenvalues:
This also means that their characteristic polynomials have real coefficients:
A complex symmetric matrix is not Hermitian:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team