datablock()#
- classmethod InterpQuadraticOperator.datablock(parameters, states, inputs=None) ndarray #
Return the data matrix block corresponding to the operator.
For interpolated operators, this is a block diagonal matrix where the
-th block is the data block for the corresponding nonparametric operator class with the state snapshots and inputs for training parameter .- Parameters:
- parameters(s, p) ndarray
Traning parameter values
.- stateslist of s (r, k) or (k,) ndarrays
State snapshots for each of the s training parameter values. If each snapshot matrix is 1D, it is assumed that
.- inputslist of s (m, k) or (k,) ndarrays
Inputs corresponding to the state snapshots. If each input matrix is 1D, it is assumed that
.
- Returns:
- block(sd, sk) ndarray
Data block for the interpolated operator. Here, d is the number of rows in the data block corresponding to a single training parameter value.