Skip to main content

blackman

Function blackman 

Source
pub fn blackman(size: usize) -> Result<Array>
Expand description

Returns a Blackman window of size samples.

ยงExample

use mlx_rs::{ops::windows::blackman, Device, Dtype};

Device::set_default(&Device::cpu());
let window = blackman(7).unwrap();
assert_eq!(window.shape(), &[7]);
assert_eq!(window.dtype(), Dtype::Float32);