[][src]Struct csaps::NdGridSpline

pub struct NdGridSpline<'a, T, D> where
    T: Real,
    D: Dimension
{ /* fields omitted */ }

N-d grid spline PP-form representation

NdGridSpline represents n-dimensional splines for n-dimensional grid data. In n-d grid case the spline is represented as tensor-product of univariate spline coefficients along every diemension.

Also evaluate method is implemented for NdGridSpline for evaluating the values for given data sites.

Methods

impl<'a, T, D> NdGridSpline<'a, T, D> where
    T: Real,
    D: Dimension
[src]

pub fn new(breaks: Vec<ArrayView1<'a, T>>, coeffs: Array<T, D>) -> Self[src]

Creates NdGridSpline struct from given breaks and coeffs

Arguments

  • breaks -- The vector of the breaks (data sites) which have been used for computing spline
  • coeffs -- The n-d array of tensor-product spline coefficients

Notes

  • NdGridSpline struct should not be created directly by a user in most cases.

pub fn ndim(&self) -> usize[src]

Returns the n-d grid spline dimensionality

pub fn order(&self) -> &Vec<usize>[src]

Returns the vector of the spline order for each dimension

pub fn pieces(&self) -> &Vec<usize>[src]

Returns the vector of the number of pieces of the spline for each dimension

pub fn breaks(&self) -> &Vec<ArrayView1<'a, T>>[src]

Returns the vector of views to the breaks for each dimension

pub fn coeffs(&self) -> ArrayView<T, D>[src]

Returns the view to the spline coefficients array

pub fn evaluate(&self, xi: &'a [ArrayView1<'a, T>]) -> Array<T, D>[src]

Evaluates the spline on the given data sites

Trait Implementations

impl<'a, T: Debug, D: Debug> Debug for NdGridSpline<'a, T, D> where
    T: Real,
    D: Dimension
[src]

Auto Trait Implementations

impl<'a, T, D> RefUnwindSafe for NdGridSpline<'a, T, D> where
    D: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, T, D> Send for NdGridSpline<'a, T, D>

impl<'a, T, D> Sync for NdGridSpline<'a, T, D>

impl<'a, T, D> Unpin for NdGridSpline<'a, T, D> where
    D: Unpin,
    T: Unpin

impl<'a, T, D> UnwindSafe for NdGridSpline<'a, T, D> where
    D: UnwindSafe,
    T: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.