CADETProcess.dataStructure.parameter.NdPolynomial.fill_values

CADETProcess.dataStructure.parameter.NdPolynomial.fill_values#

NdPolynomial.fill_values(dims, value)[source]#

Fill values to generate the polynomial matrix of the desired size.

Parameters:
dimstuple of int

Dimensions (n_entries, n_coeff) of the polynomial matrix.

valueUnion[int, float, np.ndarray, list]

Value(s) to be filled in the polynomial matrix.

Returns:
np.ndarray

Polynomial matrix of the desired size filled with given values.

Raises:
ValueError

If there’s a mismatch between the provided values and expected dimensions.