elementwise_op_fast

Function elementwise_op_fast 

Source
pub unsafe fn elementwise_op_fast<F>(
    a: &[f64],
    b: &[f64],
    out: &mut [f64],
    op: F,
)
where F: FnMut(f64, f64) -> f64,
Expand description

Fast element-wise operations with unrolled loops

ยงSafety

  • All slices must have the same length
  • Output slice must be valid for writing