Trait stencil::Manifold
[−]
[src]
pub trait Manifold: NdArray { type Coordinate; fn dx(&self) -> Self::Coordinate; fn coordinate_fill<F>(&mut self, _: F)
where
F: Fn(Self::Coordinate) -> Self::Elem; fn coordinate_map<F>(&mut self, _: F)
where
F: Fn(Self::Coordinate, Self::Elem) -> Self::Elem; }
Uniformly coordinated array
Associated Types
type Coordinate
Type of coordinate
Required Methods
fn dx(&self) -> Self::Coordinate
Increment of coordinate
fn coordinate_fill<F>(&mut self, _: F) where
F: Fn(Self::Coordinate) -> Self::Elem,
F: Fn(Self::Coordinate) -> Self::Elem,
Fill manifold by a function
fn coordinate_map<F>(&mut self, _: F) where
F: Fn(Self::Coordinate, Self::Elem) -> Self::Elem,
F: Fn(Self::Coordinate, Self::Elem) -> Self::Elem,
Map values on manifold using a function
Implementors
impl<A: LinalgScalar + Float, P: Padding, E: Edge> Manifold for Line<A, P, E> type Coordinate = A;
impl<A: LinalgScalar + Float> Manifold for Torus<A, Ix1> type Coordinate = A;
impl<A: LinalgScalar + Float> Manifold for Torus<A, Ix2> type Coordinate = (A, A);