Back to Sparse Direct Solver (SuperLU)
slu.matrix.isSymmetricSparse
Check if a sparse matrix is symmetric (A = A^T) within tolerance.
Syntax
slu.matrix.isSymmetricSparse(A, tolerance?)
Description
Check if a sparse matrix is symmetric (A = A^T) within tolerance. For a matrix to be symmetric: - It must be square - A[i,j] = A[j,i] for all i,j
Parameters
| Name | Description |
|---|---|
| A | - Sparse matrix |
| tolerance(optional) | - Tolerance for value comparison (default: 1e-14) |
Returns
boolean