pub fn transform_forward(
    w: &Wavelet,
    data: &mut [f64],
    tda: usize,
    size1: usize,
    size2: usize,
    work: &mut WaveletWorkspace
) -> Value
Expand description

These functions compute two-dimensional in-place forward and inverse discrete wavelet transforms in standard form on the array data stored in row-major form with dimensions size1 and size2 and physical row length tda. The dimensions must be equal (square matrix) and are restricted to powers of two. For the transform version of the function the argument dir can be either forward (+1) or backward (-1). A workspace work of the appropriate size must be provided. On exit, the appropriate elements of the array data are replaced by their two-dimensional wavelet transform.

The functions return a status of ::Value::Success upon successful completion. ::Inval is returned if size1 and size2 are not equal and integer powers of 2, or if insufficient workspace is provided.