csaps 0.3.0

Cubic spline approximation (smoothing)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use ndarray::NdFloat;
use almost::AlmostEqual;


/// Floating-point element types `f32` and `f64`.
///
/// Trait `Real` is only implemented for `f32` and `f64`, including the traits
/// needed for computing smoothing splines, manipulating n-d arrays and sparse matrices and also
/// checking almost equality.
///
/// This trait can only be implemented by `f32` and `f64`.
pub trait Real: NdFloat + AlmostEqual + Default {}

impl Real for f32 {}
impl Real for f64 {}