/** * set the sparse vector at index i. * * @param i * @param x * @return the old value of the element */ public SparseVector set(int i, SparseVector x) { adjustMaxIndex(i, x.getLength() - 1); return super.set(i, x); }