datablock()#

classmethod _InterpolatedOperator.datablock(states, inputs=None)[source]#

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
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.