void SparseVector::minus(const DoubleVector& x){ for(unsigned int i = 0; i < _size; i++) _values[i] = get(i) - x.get(i); };
DenseVector(const DoubleVector& vec): _vector(vec.size()){ _size = vec.size(); for (unsigned int i = 0; i < _vector.size(); i++){ _vector[i] = vec.get(i); } };