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 \(i\)-th block is the data block for the corresponding nonparametric operator class with the state snapshots and inputs for training parameter \(\bfmu_i\).

Parameters:
parameters(s, p) ndarray

Traning parameter values \(\bfmu_{0},\ldots,\bfmu_{s-1}\).

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 \(r = 1\).

inputslist of s (m, k) or (k,) ndarrays

Inputs corresponding to the state snapshots. If each input matrix is 1D, it is assumed that \(m = 1\).

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.