darsia.RadialPolynomialApproximationSpace#

class RadialPolynomialApproximationSpace(degree, center=None)[source]#

Bases: ApproximationSpace

Global radial polynomial approximation space in 2d.

For a given centre, the basis functions are |x - center| ** i for i <= degree.

Initialize the radial polynomial approximation space.

Parameters:
degreeint

Degree of the polynomial.

centerOptional[np.ndarray]

Center of the radial polynomial.

Methods

basis(x, i)

Evaluation of the basis functions.

set_center(center)

Set the center of the radial polynomial.

Attributes

size

Dimension of the radial polynomial approximation space.

basis(x, i)[source]#

Evaluation of the basis functions.

Parameters:
xnp.ndarray

Coordinates.

iint

Index of the basis function.

set_center(center)[source]#

Set the center of the radial polynomial.

Parameters:
centernp.ndarray

Center of the radial polynomial.

property size#

Dimension of the radial polynomial approximation space.