mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
lagrange
mir
interpolate
polynomial
Constructs barycentric lagrange interpolant.
Lagrange
!(
T
,
maxDerivative
)
lagrange
(X[] x, T[] y)
@
optmath
Lagrange
!(
T
,
maxDerivative
)
lagrange
(
uint
maxDerivative
= 0
T
X
)
(
scope
const
X
[]
x
,
scope
const
T
[]
y
)
if
(
maxDerivative
< 16
)
Lagrange
!(
Unqual
!(
Slice
!(
Iterator
,
1
,
kind
).
DeepElement
),
maxDerivative
,
X
)
lagrange
(Slice!(RCI!(immutable X)) x, Slice!(Iterator, 1, kind) y)
Meta
Source
See Implementation
mir
interpolate
polynomial
functions
inversedBarycentricWeights
lagrange
polynomialDerivativeValues
structs
Lagrange
Constructs barycentric lagrange interpolant.