Arithmetic with two equal-shaped arrays