@Test public void testArithmetic() {
SparseColumnMatrix M=SparseColumnMatrix.create(3, 3);
Vector v=Vector.of(-1,2,3);
M.replaceColumn(1, v);
assertEquals(4, M.elementSum(), 0.01);
assertEquals(14, M.elementSquaredSum(), 0.01);
assertEquals(-1, M.elementMin(), 0.01);
assertEquals(3, M.elementMax(), 0.01);
assertEquals(3, M.nonZeroCount());