[−][src]Struct shallow_water::sta2dfft::D2FFT
Fields
nx: usize
ny: usize
xfactors: [usize; 5]
yfactors: [usize; 5]
xtrig: Vec<f64>
ytrig: Vec<f64>
Implementations
impl D2FFT
[src]
pub fn new(
nx: usize,
ny: usize,
lx: f64,
ly: f64,
kx: &mut [f64],
ky: &mut [f64]
) -> Self
[src]
nx: usize,
ny: usize,
lx: f64,
ly: f64,
kx: &mut [f64],
ky: &mut [f64]
) -> Self
This subroutine performs the initialisation work for all subsequent transform and derivative routines. It calls the initfft() routine from the supproting 1d FFT module for transforms in both x and y directions. The routine then defines the two wavenumber arrays, one in each direction.
pub fn ptospc(&self, rvar: ArrayViewMut2<'_, f64>, svar: ArrayViewMut2<'_, f64>)
[src]
Performs a physical -> spectral transform of a variable rvar(ny,nx) periodic in x and y, and returns the result (transposed) in svar(nx,ny). *** Note rvar is destroyed on return. ***
pub fn spctop(&self, svar: ArrayViewMut2<'_, f64>, rvar: ArrayViewMut2<'_, f64>)
[src]
Performs a spectral -> physical transform of a variable svar(nx,ny) periodic in x and y and returns the result (transposed) in rvar(ny,nx). *** Note svar is destroyed on return. ***
pub fn xderiv(
&self,
rkx: &[f64],
var: ArrayView2<'_, f64>,
der: ArrayViewMut2<'_, f64>
)
[src]
&self,
rkx: &[f64],
var: ArrayView2<'_, f64>,
der: ArrayViewMut2<'_, f64>
)
Computes der = d(var)/dx, spectrally, for a variable var(nx,ny) periodic in x and y. *** both var and der are spectral ***
pub fn yderiv(
&self,
rky: &[f64],
var: ArrayView2<'_, f64>,
der: ArrayViewMut2<'_, f64>
)
[src]
&self,
rky: &[f64],
var: ArrayView2<'_, f64>,
der: ArrayViewMut2<'_, f64>
)
Computes der = d(var)/dy, spectrally, for a variable var(nx,ny) periodic in x and y. *** both var and der are spectral ***
Trait Implementations
impl Clone for D2FFT
[src]
impl Debug for D2FFT
[src]
impl<'de> Deserialize<'de> for D2FFT
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<D2FFT> for D2FFT
[src]
impl Serialize for D2FFT
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for D2FFT
[src]
Auto Trait Implementations
impl RefUnwindSafe for D2FFT
impl Send for D2FFT
impl Sync for D2FFT
impl Unpin for D2FFT
impl UnwindSafe for D2FFT
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,