Add matrix_of_scalars function
matrix_of_scalars -> tensor_of_scalars
generalize tensor_of_scalars to stacklists
Merge pull request #1335 from mrocklin/matrix_of_scalars

Add matrix_of_scalars function