Gets the value of the ith element.
Makes a deep copy of this vector.
Makes a deep copy of this vector.
index array, assume to be strictly increasing.
size of the vector.
size of the vector.
Converts the instance to a double array.
Converts the instance to a double array.
value array, must have the same length as the index array.
A sparse vector represented by an index array and an value array.