pub fn hann(size: usize) -> Result<Array>Expand description
Returns a Hann window of size samples.
ยงExample
use mlx_rs::{ops::windows::hann, Device, Dtype};
Device::set_default(&Device::cpu());
let window = hann(7).unwrap();
assert_eq!(window.shape(), &[7]);
assert_eq!(window.dtype(), Dtype::Float32);