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

H

Hermitian adjoint.

T

Transpose.

memory_size

An estimate of the raw memory size of the underlying CSR array in bytes

nnz

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