(all (cumsum ([1, 2; 3, 4], 1) == [1, 2; 4, 6])
 && all (cumsum ([1, 2; 3, 4], 2) == [1, 3; 3, 7]))
