pub struct Space1<B> {
pub base0: B,
}
Expand description
Create one-dimensional space
Fields
base0: B
Implementations
Trait Implementations
sourceimpl<A> BaseSpace<A, 1_usize> for Space1<BaseR2r<A>> where
A: FloatNum + ScalarNum,
Complex<A>: ScalarNum,
impl<A> BaseSpace<A, 1_usize> for Space1<BaseR2r<A>> where
A: FloatNum + ScalarNum,
Complex<A>: ScalarNum,
type Physical = A
type Physical = A
Number type in physical space (float or complex)
type Spectral = A
type Spectral = A
Number type in spectral space (float or complex)
sourcefn shape_physical(&self) -> [usize; 1]
fn shape_physical(&self) -> [usize; 1]
Shape of physical space
sourcefn shape_spectral(&self) -> [usize; 1]
fn shape_spectral(&self) -> [usize; 1]
Shape of spectral space
sourcefn ndarray_physical(&self) -> Array1<Self::Physical>
fn ndarray_physical(&self) -> Array1<Self::Physical>
Return array where size and type matches physical field
sourcefn ndarray_spectral(&self) -> Array1<Self::Spectral>
fn ndarray_spectral(&self) -> Array1<Self::Spectral>
Return array where size and type matches spectral field
sourcefn laplace_inv(&self, _axis: usize) -> Array2<A>
fn laplace_inv(&self, _axis: usize) -> Array2<A>
Pseudoinverse matrix of Laplacian Read more
sourcefn laplace_inv_eye(&self, _axis: usize) -> Array2<A>
fn laplace_inv_eye(&self, _axis: usize) -> Array2<A>
Pseudoidentity matrix of laplacian Read more
sourcefn coords_axis(&self, _axis: usize) -> Array1<A>
fn coords_axis(&self, _axis: usize) -> Array1<A>
Coordinates of grid points (in physical space) Read more
sourcefn to_ortho<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn to_ortho<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transformation from composite and to orthonormal space. Read more
sourcefn to_ortho_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn to_ortho_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transformation from composite and to orthonormal space (inplace). Read more
sourcefn from_ortho<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn from_ortho<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transformation from orthonormal and to composite space. Read more
sourcefn from_ortho_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn from_ortho_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transformation from orthonormal and to composite space (inplace). Read more
sourcefn to_ortho_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn to_ortho_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transformation from composite and to orthonormal space. Read more
sourcefn to_ortho_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn to_ortho_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transformation from composite and to orthonormal space (inplace). Read more
sourcefn from_ortho_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn from_ortho_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transformation from orthonormal and to composite space. Read more
sourcefn from_ortho_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn from_ortho_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transformation from orthonormal and to composite space (inplace). Read more
sourcefn gradient<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>,
deriv: [usize; 1],
scale: Option<[A; 1]>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn gradient<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>,
deriv: [usize; 1],
scale: Option<[A; 1]>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Take gradient. Optional: Rescale result by a constant. Read more
sourcefn gradient_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>,
deriv: [usize; 1],
scale: Option<[A; 1]>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn gradient_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>,
deriv: [usize; 1],
scale: Option<[A; 1]>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Take gradient. Optional: Rescale result by a constant. (Parallel) Read more
sourcefn forward<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Physical>,
fn forward<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Physical>,
Transform physical -> spectral space Read more
sourcefn forward_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Physical>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn forward_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Physical>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transform physical -> spectral space (inplace) Read more
sourcefn backward<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Physical, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn backward<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Physical, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transform spectral -> physical space Read more
sourcefn backward_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Physical> + DataMut,
fn backward_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Physical> + DataMut,
Transform spectral -> physical space (inplace) Read more
sourcefn forward_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Physical>,
fn forward_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Physical>,
Transform physical -> spectral space Read more
sourcefn forward_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Physical>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn forward_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Physical>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transform physical -> spectral space (inplace) Read more
sourceimpl<A> BaseSpace<A, 1_usize> for Space1<BaseR2c<A>> where
A: FloatNum + ScalarNum,
Complex<A>: ScalarNum,
impl<A> BaseSpace<A, 1_usize> for Space1<BaseR2c<A>> where
A: FloatNum + ScalarNum,
Complex<A>: ScalarNum,
type Physical = A
type Physical = A
Number type in physical space (float or complex)
sourcefn shape_physical(&self) -> [usize; 1]
fn shape_physical(&self) -> [usize; 1]
Shape of physical space
sourcefn shape_spectral(&self) -> [usize; 1]
fn shape_spectral(&self) -> [usize; 1]
Shape of spectral space
sourcefn ndarray_physical(&self) -> Array1<Self::Physical>
fn ndarray_physical(&self) -> Array1<Self::Physical>
Return array where size and type matches physical field
sourcefn ndarray_spectral(&self) -> Array1<Self::Spectral>
fn ndarray_spectral(&self) -> Array1<Self::Spectral>
Return array where size and type matches spectral field
sourcefn laplace_inv(&self, _axis: usize) -> Array2<A>
fn laplace_inv(&self, _axis: usize) -> Array2<A>
Pseudoinverse matrix of Laplacian Read more
sourcefn laplace_inv_eye(&self, _axis: usize) -> Array2<A>
fn laplace_inv_eye(&self, _axis: usize) -> Array2<A>
Pseudoidentity matrix of laplacian Read more
sourcefn coords_axis(&self, _axis: usize) -> Array1<A>
fn coords_axis(&self, _axis: usize) -> Array1<A>
Coordinates of grid points (in physical space) Read more
sourcefn to_ortho<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn to_ortho<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transformation from composite and to orthonormal space. Read more
sourcefn to_ortho_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn to_ortho_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transformation from composite and to orthonormal space (inplace). Read more
sourcefn from_ortho<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn from_ortho<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transformation from orthonormal and to composite space. Read more
sourcefn from_ortho_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn from_ortho_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transformation from orthonormal and to composite space (inplace). Read more
sourcefn to_ortho_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn to_ortho_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transformation from composite and to orthonormal space. Read more
sourcefn to_ortho_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn to_ortho_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transformation from composite and to orthonormal space (inplace). Read more
sourcefn from_ortho_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn from_ortho_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transformation from orthonormal and to composite space. Read more
sourcefn from_ortho_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn from_ortho_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transformation from orthonormal and to composite space (inplace). Read more
sourcefn gradient<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>,
deriv: [usize; 1],
scale: Option<[A; 1]>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn gradient<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>,
deriv: [usize; 1],
scale: Option<[A; 1]>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Take gradient. Optional: Rescale result by a constant. Read more
sourcefn gradient_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>,
deriv: [usize; 1],
scale: Option<[A; 1]>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn gradient_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>,
deriv: [usize; 1],
scale: Option<[A; 1]>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Take gradient. Optional: Rescale result by a constant. (Parallel) Read more
sourcefn forward<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Physical>,
fn forward<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Physical>,
Transform physical -> spectral space Read more
sourcefn forward_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Physical>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn forward_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Physical>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transform physical -> spectral space (inplace) Read more
sourcefn backward<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Physical, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn backward<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Physical, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transform spectral -> physical space Read more
sourcefn backward_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Physical> + DataMut,
fn backward_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Physical> + DataMut,
Transform spectral -> physical space (inplace) Read more
sourcefn forward_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Physical>,
fn forward_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Physical>,
Transform physical -> spectral space Read more
sourcefn forward_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Physical>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn forward_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Physical>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transform physical -> spectral space (inplace) Read more
sourceimpl<A> BaseSpace<A, 1_usize> for Space1<BaseC2c<A>> where
A: FloatNum + ScalarNum,
Complex<A>: ScalarNum,
impl<A> BaseSpace<A, 1_usize> for Space1<BaseC2c<A>> where
A: FloatNum + ScalarNum,
Complex<A>: ScalarNum,
sourcefn shape_physical(&self) -> [usize; 1]
fn shape_physical(&self) -> [usize; 1]
Shape of physical space
sourcefn shape_spectral(&self) -> [usize; 1]
fn shape_spectral(&self) -> [usize; 1]
Shape of spectral space
sourcefn ndarray_physical(&self) -> Array1<Self::Physical>
fn ndarray_physical(&self) -> Array1<Self::Physical>
Return array where size and type matches physical field
sourcefn ndarray_spectral(&self) -> Array1<Self::Spectral>
fn ndarray_spectral(&self) -> Array1<Self::Spectral>
Return array where size and type matches spectral field
sourcefn laplace_inv(&self, _axis: usize) -> Array2<A>
fn laplace_inv(&self, _axis: usize) -> Array2<A>
Pseudoinverse matrix of Laplacian Read more
sourcefn laplace_inv_eye(&self, _axis: usize) -> Array2<A>
fn laplace_inv_eye(&self, _axis: usize) -> Array2<A>
Pseudoidentity matrix of laplacian Read more
sourcefn coords_axis(&self, _axis: usize) -> Array1<A>
fn coords_axis(&self, _axis: usize) -> Array1<A>
Coordinates of grid points (in physical space) Read more
sourcefn to_ortho<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn to_ortho<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transformation from composite and to orthonormal space. Read more
sourcefn to_ortho_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn to_ortho_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transformation from composite and to orthonormal space (inplace). Read more
sourcefn from_ortho<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn from_ortho<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transformation from orthonormal and to composite space. Read more
sourcefn from_ortho_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn from_ortho_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transformation from orthonormal and to composite space (inplace). Read more
sourcefn to_ortho_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn to_ortho_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transformation from composite and to orthonormal space. Read more
sourcefn to_ortho_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn to_ortho_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transformation from composite and to orthonormal space (inplace). Read more
sourcefn from_ortho_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn from_ortho_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transformation from orthonormal and to composite space. Read more
sourcefn from_ortho_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn from_ortho_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transformation from orthonormal and to composite space (inplace). Read more
sourcefn gradient<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>,
deriv: [usize; 1],
scale: Option<[A; 1]>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn gradient<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>,
deriv: [usize; 1],
scale: Option<[A; 1]>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Take gradient. Optional: Rescale result by a constant. Read more
sourcefn gradient_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>,
deriv: [usize; 1],
scale: Option<[A; 1]>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn gradient_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>,
deriv: [usize; 1],
scale: Option<[A; 1]>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Take gradient. Optional: Rescale result by a constant. (Parallel) Read more
sourcefn forward<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Physical>,
fn forward<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Physical>,
Transform physical -> spectral space Read more
sourcefn forward_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Physical>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn forward_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Physical>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transform physical -> spectral space (inplace) Read more
sourcefn backward<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Physical, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
fn backward<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Physical, Dim<[usize; 1]>> where
S: Data<Elem = Self::Spectral>,
Transform spectral -> physical space Read more
sourcefn backward_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Physical> + DataMut,
fn backward_inplace<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Spectral>,
S2: Data<Elem = Self::Physical> + DataMut,
Transform spectral -> physical space (inplace) Read more
sourcefn forward_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Physical>,
fn forward_par<S>(
&self,
input: &ArrayBase<S, Dim<[usize; 1]>>
) -> Array<Self::Spectral, Dim<[usize; 1]>> where
S: Data<Elem = Self::Physical>,
Transform physical -> spectral space Read more
sourcefn forward_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Physical>,
S2: Data<Elem = Self::Spectral> + DataMut,
fn forward_inplace_par<S1, S2>(
&self,
input: &ArrayBase<S1, Dim<[usize; 1]>>,
output: &mut ArrayBase<S2, Dim<[usize; 1]>>
) where
S1: Data<Elem = Self::Physical>,
S2: Data<Elem = Self::Spectral> + DataMut,
Transform physical -> spectral space (inplace) Read more
Auto Trait Implementations
impl<B> RefUnwindSafe for Space1<B> where
B: RefUnwindSafe,
impl<B> Send for Space1<B> where
B: Send,
impl<B> Sync for Space1<B> where
B: Sync,
impl<B> Unpin for Space1<B> where
B: Unpin,
impl<B> UnwindSafe for Space1<B> where
B: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more