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