The OpenD Programming Language

Spline

Multivariate cubic spline with nodes on rectilinear grid.

Constructors

this
this(Repeat!(N, Slice!(RCI!(immutable X))) grid)

Members

Aliases

argmax
alias argmax = argminImpl!"a > b"
argmin
alias argmin = argminImpl!"a < b"
withDerivative
alias withDerivative = opCall!1
withTwoDerivatives
alias withTwoDerivatives = opCall!2

Functions

_computeDerivatives
void _computeDerivatives(SplineType kind, F param, SplineBoundaryCondition!F lBoundary, SplineBoundaryCondition!F rBoundary)
_computeDerivativesTemp
void _computeDerivativesTemp(SplineType kind, F param, SplineBoundaryCondition!F lBoundary, SplineBoundaryCondition!F rBoundary, Slice!(F*) temp)

Computes derivatives and stores them in _data. _data is assumed to be preinitialized with function values filled in F[2 ^^ N][0].

_values
void _values(Slice!(Iterator, N, kind) values)

Assigns function values to the internal memory. For internal use.

grid
Slice!(RCI!(immutable X)) grid()
gridScopeView
immutable(X)[] gridScopeView()
gridShape
size_t[N] gridShape()
intervalCount
size_t intervalCount()
lightConst
Spline lightConst()
lightImmutable
Spline lightImmutable()
opBinary
Spline opBinary(Spline rhs)

Note: defined only for 1D splines

Templates

opCall
template opCall(uint derivative : 2)
opCall
template opCall(uint derivative = 0)

Variables

_data
Slice!(RCI!(F[2^^N]), N) _data;

Aligned buffer allocated with mir.internal.memory. For internal use.

_grid
Repeat!(N, RCI!(immutable X)) _grid;

Grid iterators. For internal use.

convexity
SplineConvexity[N] convexity;
derivativeOrder
enum uint derivativeOrder;

Meta