A real symmetric or complex Hermitian sparse matrix is stored as
an spmatrix object X of size (n, n) and an
additional character argument uplo
with possible values
'L'
and 'U'
.
If uplo
is 'L'
, the lower triangular part
of X contains the lower triangular part of the
symmetric or Hermitian matrix, and the upper triangular matrix
of X is ignored.
If uplo
is 'U'
, the upper triangular part
of X contains the upper triangular part of the
matrix, and the lower triangular matrix of X is ignored.
A general sparse square matrix of order n is represented by an spmatrix object of size (n, n).
Dense matrices, which appear as righthand sides of equations, are stored using the same conventions as in the BLAS and LAPACK modules.