You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove converter, replace by macro pragma to generate overloads (#43)
* remove some whitespace
* remove `toNumContextProc` converter
It can cause issues in some generic / template contexts.
* add `genInterp` macro pragma to generate overloads for `InterpolatorType`
This takes the place of the previously automagical `converter`.
* [CI] replace nim 1.4 by 1.6
* [CI] see what 2.0.8 has to say
* use `toNumContextProc`, generate adaptiveGauss manually
Regarding adaptiveGauss see the added comment
* [CI] try 1.6 again
## Calculate the cumulative integral of f using an globally adaptive Gauss-Kronrod Quadrature.
914
930
## Returns a sequence of values which is the cumulative integral of f at the points defined in X.
915
931
## Important: because of the much higher order of the Gauss-Kronrod quadrature (order 21) compared to the interpolating Hermite spline (order 3) you have to give it a large amount of initialPoints.
## - `Edge`: Use the value of the left/right edge.
305
305
## - `Linear`: Uses linear extrapolation using the two points closest to the edge.
306
306
## - `Native` (default): Uses the native method of the interpolator to extrapolate. For Linear1D it will be a linear extrapolation, and for Cubic and Hermite splines it will be cubic extrapolation.
307
-
## - `Error`: Raises an `ValueError` if `x` is outside the range.
307
+
## - `Error`: Raises an `ValueError` if `x` is outside the range.
308
308
## - `extrapValue`: The extrapolation value to use when `extrap = Constant`.
309
-
##
309
+
##
310
310
## > Beware: `Native` extrapolation for the cubic splines can very quickly diverge if the extrapolation is too far away from the interpolation points.
311
311
when U is Missing:
312
312
assert extrap != Constant, "When using `extrap = Constant`, a value `extrapValue` must be supplied!"
313
313
else:
314
314
when not T is U:
315
315
{.error: &"Type of `extrap` ({U}) is not the same as the type of the interpolator ({T})!".}
## - `Edge`: Use the value of the left/right edge.
352
352
## - `Linear`: Uses linear extrapolation using the two points closest to the edge.
353
353
## - `Native` (default): Uses the native method of the interpolator to extrapolate. For Linear1D it will be a linear extrapolation, and for Cubic and Hermite splines it will be cubic extrapolation.
354
-
## - `Error`: Raises an `ValueError` if `x` is outside the range.
354
+
## - `Error`: Raises an `ValueError` if `x` is outside the range.
355
355
## - `extrapValue`: The extrapolation value to use when `extrap = Constant`.
356
-
##
356
+
##
357
357
## > Beware: `Native` extrapolation for the cubic splines can very quickly diverge if the extrapolation is too far away from the interpolation points.
358
358
when U is Missing:
359
359
assert extrap != Constant, "When using `extrap = Constant`, a value `extrapValue` must be supplied!"
0 commit comments