darsia.RadialPolynomialApproximationSpace#
- class RadialPolynomialApproximationSpace(degree, center=None)[source]#
Bases:
ApproximationSpaceGlobal radial polynomial approximation space in 2d.
For a given centre, the basis functions are
|x - center| ** ifori <= degree.Initialize the radial polynomial approximation space.
- Parameters:
- degree
int Degree of the polynomial.
- center
Optional[np.ndarray] Center of the radial polynomial.
- degree
Methods
basis(x, i)Evaluation of the basis functions.
set_center(center)Set the center of the radial polynomial.
Attributes
Dimension of the radial polynomial approximation space.
- basis(x, i)[source]#
Evaluation of the basis functions.
- Parameters:
- x
np.ndarray Coordinates.
- i
int Index of the basis function.
- x
- set_center(center)[source]#
Set the center of the radial polynomial.
- Parameters:
- center
np.ndarray Center of the radial polynomial.
- center
- property size#
Dimension of the radial polynomial approximation space.