Given one or multiple array of values (such as
int, etc.), we want to process the array element wise. For example, we want to scale and add the value of an input array and add that to the output array. This is exactly the behavior of the
?AXPYmethod of the BLAS linear algebra library:
Y = A*X + YNote that this special function is just a running example (we will use the single precision datatype
float, thus our function of interest is called
saxpy). The underlying concept is true for any element-wise array function.