sum of a matrix
matrix
axis
dynamic sum(Matrix matrix, int axis) { Matrix newMatrix = matrix.sum(axis); return newMatrix; }