Struct stencil::torus::Torus
[−]
[src]
pub struct Torus<A: LinalgScalar, D: Dimension> { /* fields omitted */ }
N-dimensional torus
For simulations with the periodic boundary condition
Methods
impl<A: LinalgScalar, D: Dimension> Torus<A, D>
[src]
Trait Implementations
impl<A: Clone + LinalgScalar, D: Clone + Dimension> Clone for Torus<A, D>
[src]
fn clone(&self) -> Torus<A, D>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<A: LinalgScalar, D: Dimension> NdArray for Torus<A, D>
[src]
type Elem = A
type Dim = D
fn shape(&self) -> D::Pattern
[src]
fn as_view(&self) -> ArrayView<Self::Elem, Self::Dim>
[src]
fn as_view_mut(&mut self) -> ArrayViewMut<Self::Elem, Self::Dim>
[src]
impl<A: LinalgScalar> StencilArray<N1D1<A>> for Torus<A, Ix1>
[src]
fn stencil_map<Output, Func>(&self, out: &mut Output, f: Func) where
Output: NdArray<Dim = Self::Dim>,
Func: Fn(N1D1<A>) -> Output::Elem,
[src]
Output: NdArray<Dim = Self::Dim>,
Func: Fn(N1D1<A>) -> Output::Elem,
Execute a stencil calculation
impl<A: LinalgScalar> StencilArray<N2D1<A>> for Torus<A, Ix1>
[src]
fn stencil_map<Output, Func>(&self, out: &mut Output, f: Func) where
Output: NdArray<Dim = Self::Dim>,
Func: Fn(N2D1<A>) -> Output::Elem,
[src]
Output: NdArray<Dim = Self::Dim>,
Func: Fn(N2D1<A>) -> Output::Elem,
Execute a stencil calculation
impl<A: LinalgScalar> StencilArray<N1D2<A>> for Torus<A, Ix2>
[src]
fn stencil_map<Output, Func>(&self, out: &mut Output, f: Func) where
Output: NdArray<Dim = Self::Dim>,
Func: Fn(N1D2<A>) -> Output::Elem,
[src]
Output: NdArray<Dim = Self::Dim>,
Func: Fn(N1D2<A>) -> Output::Elem,
Execute a stencil calculation
impl<A: LinalgScalar + Float> Manifold for Torus<A, Ix1>
[src]
type Coordinate = A
Type of coordinate
fn dx(&self) -> Self::Coordinate
[src]
Increment of coordinate
fn coordinate_fill<F>(&mut self, f: F) where
F: Fn(Self::Coordinate) -> Self::Elem,
[src]
F: Fn(Self::Coordinate) -> Self::Elem,
Fill manifold by a function
fn coordinate_map<F>(&mut self, f: F) where
F: Fn(Self::Coordinate, Self::Elem) -> Self::Elem,
[src]
F: Fn(Self::Coordinate, Self::Elem) -> Self::Elem,
Map values on manifold using a function
impl<A: LinalgScalar + Float> Manifold for Torus<A, Ix2>
[src]
type Coordinate = (A, A)
Type of coordinate
fn dx(&self) -> Self::Coordinate
[src]
Increment of coordinate
fn coordinate_fill<F>(&mut self, f: F) where
F: Fn(Self::Coordinate) -> Self::Elem,
[src]
F: Fn(Self::Coordinate) -> Self::Elem,
Fill manifold by a function
fn coordinate_map<F>(&mut self, f: F) where
F: Fn(Self::Coordinate, Self::Elem) -> Self::Elem,
[src]
F: Fn(Self::Coordinate, Self::Elem) -> Self::Elem,
Map values on manifold using a function