[−][src]Struct csaps::NdGridSpline
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]
T: Real,
D: Dimension,
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 splinecoeffs
-- 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
Auto Trait Implementations
impl<'a, T, D> RefUnwindSafe for NdGridSpline<'a, T, D> where
D: RefUnwindSafe,
T: RefUnwindSafe,
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,
D: Unpin,
T: Unpin,
impl<'a, T, D> UnwindSafe for NdGridSpline<'a, T, D> where
D: UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
D: UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,