Skip to main content

add_alloc

Function add_alloc 

Source
pub fn add_alloc(a: &[f32], b: &[f32]) -> Vec<f32>
Expand description

Element-wise add with output allocation. Avoids zero-fill overhead.

ยงPanics

Panics if a and b have different lengths.