subtractElements

Subtracts the arrays element by element. Arrays must have the same length and must not be null.

Return

the new array containing ``a[i]-b[i]``

Parameters

a

the first array

b

the second array