MASTER_SITES is defined in math/R/Makefile.extension, which should be
included by all R packages. Therefore, MASTER_SITES should not normally
be defined in the Makefile for an R package.
The tensor product of two arrays is notionally an outer product of the
arrays collapsed in specific extents by summing along the appropriate
diagonals.