csr_matrix.py#

Define the CSRmatrix class.

class openmdao.matrices.csr_matrix.CSRMatrix(submats)[source]

Bases: COOMatrix

Sparse matrix in Compressed Row Storage format.

Parameters:
submatsdict

Dictionary of sub-jacobian data keyed by (row_name, col_name).

Methods

dump(msginfo)

Dump the matrix to stdout.

todense()

Return a dense version of the matrix.

transpose()

Transpose the matrix.

transpose()[source]

Transpose the matrix.

Returns:
csc_matrix

Transposed matrix.