apply_ops

Function apply_ops 

Source
pub fn apply_ops<P>(
    n: usize,
    ops: &[MatrixOp<P>],
    input: &[P],
    output: &mut [P],
    input_offset: usize,
    output_offset: usize,
)
where P: AddAssign + Clone + One + Zero + Sum + Mul<Output = P> + Send + Sync,
Expand description

Apply ops to the input, adding the results to output. If either start at a nonzero state index in their 0th index, use input/output_offset. This is much less efficient as compared to repeated applications of apply_op, if your ops can be applied in sequence, do so with apply_op.