dht2

Function dht2 

Source
pub fn dht2<S>(
    x: &ArrayBase<S, Ix2>,
    axes: Option<(usize, usize)>,
) -> FFTResult<Array2<f64>>
where S: Data<Elem = f64>,
Expand description

Compute the 2D Discrete Hartley Transform.

§Arguments

  • x - Input 2D array
  • axes - Axes along which to compute the transform (default: (0, 1))

§Returns

The 2D Hartley transform of the input array.

§Example

use scirs2_core::ndarray::array;
use scirs2_fft::hartley::dht2;

let x = array![[1.0, 2.0], [3.0, 4.0]];
let h = dht2(&x, None).unwrap();
println!("2D Hartley transform: {:?}", h);