Skip to main content

binary_into

Function binary_into 

Source
pub fn binary_into<T: Ops>(op: BinaryOp, x: &[T], y: &[T], out: &mut [T])
Expand description

out[i] = op(x[i], y[i]), where a slice of length 1 stands for every element (a broadcast scalar).

ยงPanics

Panics if a length is neither 1 nor the length of out.