matrix.py

Define the base Matrix class.

class openmdao.matrices.matrix.Matrix(comm)[source]

Bases: object

Base matrix class.

This class is used for global Jacobians.

__init__(self, comm)[source]

Initialize all attributes.

Parameters
commMPI.Comm or <FakeComm>

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

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.

Parameters
activebool

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