SparseIndexedVector v=SparseIndexedVector.createLength(10);
assertEquals(0,v.nonZeroCount());
v.set(1,1);
assertEquals(1.0,v.elementSum(),0.0);
assertEquals(1,v.nonZeroCount());
assertTrue(Arrays.equals(new int[]{1},v.nonZeroIndices()));
SparseIndexedVector w=v.clone();
v.add(ZeroVector.create(10));