jcoglan/sylvester — pull request #10 by yuzeh (2012-08-04 22:29:04+00:00)
Title: Matrix row/column sum/mean

Added some code for matrix {row, column} {sum, mean}.

M.sum(dim) returns the sum along dim (0 => sum rows, 1 => sum columns, default 0).
M.mean(dim) returns the mean along dim (same semantics as before).

If dim is not 0 or 1, null is returned.

The return value of M.sum and M.mean are Vector objects.

Unit tests are included.