Calculates the absolute value of each element in an input array and stores the result in an output array.