darsia.LinearApproximation#

class LinearApproximation(space, dim, domain='coordinates')[source]#

Bases: object

Linear combination of any approximation space.

Coefficients can have any dimensionality.

Initialize the linear approximation (with zero coefficients).

Parameters:
spaceApproximationSpace

Approximation space.

dimUnion[int, tuple[int, int]]

Dimension of the coefficients.

Methods

evaluate(input)

Evaluate the linear combination on a given input.

evaluate(input)[source]#

Evaluate the linear combination on a given input.

Parameters:
inputUnion[darsia.CoordinateSystem, darsia.CoordinateArray, darsia.VoxelArray]

Foundation for the evaluation.

Returns:
np.ndarray

Result.