darsia.LinearApproximation#
- class LinearApproximation(space, dim, domain='coordinates')[source]#
Bases:
objectLinear combination of any approximation space.
Coefficients can have any dimensionality.
Initialize the linear approximation (with zero coefficients).
- Parameters:
- space
ApproximationSpace Approximation space.
- dim
Union[int,tuple[int,int]] Dimension of the coefficients.
- space
Methods
evaluate(input)Evaluate the linear combination on a given input.
- evaluate(input)[source]#
Evaluate the linear combination on a given input.
- Parameters:
- input
Union[darsia.CoordinateSystem,darsia.CoordinateArray,darsia.VoxelArray] Foundation for the evaluation.
- input
- Returns:
np.ndarrayResult.