arithInto
fn
void arithInto(T, string op)(const(T)[] a, const(T)[] b,
T[] outValues) if (isNumeric!T && isOp!op)Computes outValues[i] = a[i] op b[i] densely, with D's arithmetic semantics (`+`, `-`, `*` wrap on integers, IEEE on floats; `/` is floating division). Null slots hold arbitrary bits on both sides, so no slot is special here (D14).
Parameters
T | the common element type (numeric) |
op | one of `"+"`, `"-"`, `"*"`, `"/"`, `"%"` (the last two require a floating T; the integer variants are guardedDivInto) |
a | the left operand |
b | the right operand (same length as a) |
outValues | the destination, a.length elements |