10 #ifndef VECTORARRAY_INCL_H_INCLUDED
11 #define VECTORARRAY_INCL_H_INCLUDED
18 std::vector<T> tempElems;
19 tempElems.assign(nC, newelem);
20 elems.assign(nR, tempElems);
26 template <
class T>
void ArrayVec<T>::write(std::ostream &streamout,
const char *sep)
const
30 for (
int i = 0; i < nR; ++i)
32 for (
int j = 0; j < nC; ++j)
34 streamout << this->elems[i][j] << sep;
36 streamout << std::endl;
40 template <
class T>
void DisplayArray(
const T &in)
42 for (
int i; i < in.size(); ++i)
44 std::cout << i <<
" : ";
46 std::cout << std::endl;
Template class for vector of vectors (matrix).
Provides a 2D std::vector based container.