Defines commonly shared functionality for computations over arrays.