Struct rgsl::types::wavelet_transforms::WaveletWorkspace
source · pub struct WaveletWorkspace { /* private fields */ }
Expand description
The WaveletWorkspace structure contains scratch space of the same size as the input data and is used to hold intermediate results during the transform.
Implementations§
source§impl WaveletWorkspace
impl WaveletWorkspace
sourcepub fn new(n: usize) -> Option<WaveletWorkspace>
pub fn new(n: usize) -> Option<WaveletWorkspace>
This function allocates a workspace for the discrete wavelet transform. To perform a one-dimensional transform on n elements, a workspace of size n must be provided. For two-dimensional transforms of n-by-n matrices it is sufficient to allocate a workspace of size n, since the transform operates on individual rows and columns. A null pointer is returned if insufficient memory is available.