fulqrum.core.CSRLinearOperator¶
- class CSRLinearOperator(matrix, is_real=0)[source]¶
A SciPy LinearOperator wrapper for a CSR array. Allows for parallel computation of the sparse-matrix vector product needed for eigensolving.
Methods
matvec(x)Attributes
HHermitian adjoint.
TTranspose.
An estimate of the raw memory size of the underlying CSR array in bytes
Number of nonzero elements in the underlying CSR matrix
ndim- property memory_size¶
An estimate of the raw memory size of the underlying CSR array in bytes
- Returns:
Memory size in bytes
- Return type:
int
- property nnz¶
Number of nonzero elements in the underlying CSR matrix
- Returns:
int