_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 aopinf.operators._base._NonparametricOperator
.Examples
>>> parametric_operator = MyParametricOperator(init_args) >>> nonparametric_operator = parametric_operator.evaluate(parameter_value) >>> isinstance(nonparametric_operator, _NonparametricOperator) True
Child classes:
_AffineOperator
(TODO)
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 the operator to the given state and input at the specified parameter value, \(\Ophat_\ell(\qhat,\u;\bfmu)\).
Return a copy of the operator.
Return the data matrix block corresponding to the operator.
Evaluate the operator at the given parameter value, resulting in a nonparametric operator of type
OperatorClass
.Get the (Petrov-)Galerkin projection of this operator.
Construct the state Jacobian of the operator, \(\ddqhat\Ophat_\ell(\qhat,\u;\bfmu)\).
Load a parametric operator from an HDF5 file.
Number of columns in the operator matrix.
Save the operator to an HDF5 file.