_ParametricOperator#

class _ParametricOperator[source]#

Base class for operators that depend on external parameters, i.e., \(\Ophat_\ell(\qhat,\u;\bfmu) = \Ohat_\ell(\bfmu)\d_\ell(\qhat,\u)\).

Evaluating a _ParametricOpertor at a specific parameter value results in a opinf.operators._base._NonparametricOperator.

Examples

>>> parametric_operator = MyParametricOperator(init_args)
>>> nonparametric_operator = parametric_operator.evaluate(parameter_value)
>>> isinstance(nonparametric_operator, _NonparametricOperator)
True

Child classes:

Properties

OperatorClass

Nonparametric opinf.operators class that represents this parametric operator evaluated at a particular parameter value.

parameter_dimension

Dimension of the parameters \(\bfmu\) that the operator acts on.

shape

Shape of the operator entries matrix when evaluated at a parameter value.

state_dimension

Dimension of the state \(\qhat\) that the operator acts on.

Methods

apply

Apply the operator to the given state and input at the specified parameter value, \(\Ophat_\ell(\qhat,\u;\bfmu)\).

copy

Return a copy of the operator.

datablock

Return the data matrix block corresponding to the operator.

evaluate

Evaluate the operator at the given parameter value, resulting in a nonparametric operator of type OperatorClass.

galerkin

Get the (Petrov-)Galerkin projection of this operator.

jacobian

Construct the state Jacobian of the operator, \(\ddqhat\Ophat_\ell(\qhat,\u;\bfmu)\).

load

Load a parametric operator from an HDF5 file.

operator_dimension

Number of columns in the operator matrix.

save

Save the operator to an HDF5 file.