/**************************************************************** **** **** This file belongs with the course **** Introduction to Scientific Programming in C++/Fortran2003 **** copyright 2017-2023 Victor Eijkhout eijkhout@tacc.utexas.edu **** **** virtualvec.cxx : virtual vector base **** ****************************************************************/ #include using std::cout; #include using std::vector; #include "virtualvec.hpp" class DenseVector : VirtualVector { private: vector values; public: DenseVector( int size ) { values = vector(size,0); }; void setlinear( float v ) { for (int i=0; i