Function fftw::array::alignment_of

source ·
pub fn alignment_of<T>(a: &[T]) -> Alignment
Expand description

Check the alignment of slice

let a = AlignedVec::<f32>::new(123);
assert_eq!(alignment_of(&a), 0);  // aligned