rowsums, colsums, rowmeans, colmeans for in-core + tests