Skip to main content

aligned_vec_f32

Function aligned_vec_f32 

Source
pub fn aligned_vec_f32(len: usize, align: usize) -> Option<Vec<f32>>
Expand description

Allocate a SIMD-aligned Vec<f32>

Returns a Vec whose data pointer is aligned to the specified boundary. This ensures optimal SIMD load/store performance.

ยงErrors

Returns None if allocation fails.