matrix.py#

Define the base Matrix class.

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

Bases: object

Base matrix class.

This class is used for global Jacobians.

Parameters:
submatsdict

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

Attributes:
_matrixobject

implementation-specific representation of the actual matrix.

_submatsdict

dictionary of sub-matrix data keyed by (out_name, in_name).

dtypedtype

The dtype of the matrix.

__init__(submats)[source]

Initialize all attributes.