csc_matrix.py#
Define the CSCmatrix class.
- class openmdao.matrices.csc_matrix.CSCMatrix(submats)[source]
Bases:
COOMatrixSparse matrix in Compressed Col 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:
- csr_matrix
Transposed matrix.