Linear Algebra and the C Language/a0gn


Symmetric matrix:

In linear algebra, a symmetric matrix is a square matrix that is equal to its transpose... Wikipedia: Symmetric matrix


The sum of two symmetric matrices is symmetric.

The product of two symmetric matrices is symmetric if and only if the matrices commute.

  • .

For all n, A**n is symmetric if A is symmetric.

If the inverse of a symmetric matrix exists, it is symmetric.


The rank of a symmetric matrix is ​​equal to the number of non-zero eigenvalues.


Let A be a square matrix: (A+AT) is symmetric, (A-AT) is a skew matrix

Let A be a square matrix: A = (A+AT)/2 + (A-AT)/2

Code study

The code