The OpenD Programming Language

constant

Constructs multivariate constant interpolant with nodes on rectilinear grid.

Constant!(F, N, X)
constant
(
F
size_t N = 1
X = F
)
(
Repeat!(N, Slice!(RCI!(immutable X))) grid
,
Slice!(RCI!(const F), N) values
)

Parameters

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

x values for interpolant

values Slice!(RCI!(const F), N)

f(x) values for interpolant

Constraints: grid, values must have the same length >= 1

Return Value

Type: Constant!(F, N, X)

Meta