arithInto

fnvoid 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

Tthe common element type (numeric)
opone of `"+"`, `"-"`, `"*"`, `"/"`, `"%"` (the last two require a floating T; the integer variants are guardedDivInto)
athe left operand
bthe right operand (same length as a)
outValuesthe destination, a.length elements