Squish array along an axis.
Determine the sum along all but one axis for an array.
Array to squish.
Axis of r to squish along.
Array r squished into a single dimension.