Define the COOmatrix class.

class openmdao.matrices.coo_matrix.COOMatrix(comm, is_internal)[source]

Bases: openmdao.matrices.matrix.Matrix

Sparse matrix in Coordinate list format.

__init__(self, comm, is_internal)[source]

Initialize all attributes.

commMPI.Comm or <FakeComm>

communicator of the top-level system that owns the <Jacobian>.


If True, this is the int_mtx of an AssembledJacobian.

set_complex_step_mode(self, active)[source]

Turn on or off complex stepping mode.

When turned on, the value in each subjac is cast as complex, and when turned off, they are returned to real values.


Complex mode flag; set to True prior to commencing complex step.