Skip to main content

alloc_cpu_zeroed

Function alloc_cpu_zeroed 

Source
pub fn alloc_cpu_zeroed(dtype: DType, elem_count: usize) -> Result<Storage>
Expand description

Allocate freshly on the CPU backend with the given dtype + element count. Bytes are zero-initialized and 64-byte aligned (suitable for AVX-512 SIMD).