00001 #ifndef ArrayOfVectors____
00002 #define ArrayOfVectors____
00003 #include <vector>
00004 #include "vecdouble.h"
00005
00006 class ArrayOfVectors : public std::vector<VecDouble>
00007 {
00008 public:
00009 ArrayOfVectors(unsigned size)
00010 :std::vector<VecDouble>(size)
00011 {
00012 }
00013 ArrayOfVectors(){}
00014
00015 void getValues(unsigned index,VecDouble &v) const
00016 {
00017 assert(v.size() == this->size());
00018 for (unsigned cmp=0;cmp<size();cmp++)
00019 {
00020 v(cmp)=(*this)[cmp](index);
00021 }
00022 }
00023
00024
00025
00026 };
00027 #endif