* to either will not be reflected in the other.
*
* @param v the intial values for this vector to have
*/
public CompactSparseIntegerVector(IntegerVector v) {
intArray = new SparseIntArray(v.length());
if (v instanceof SparseVector) {
SparseVector sv = (SparseVector)v;
for (int i : sv.getNonZeroIndices())
intArray.set(i, v.get(i));
}