Exemplo n.º 1
0
     ConstVectorView subvector(const VEC &v, uint start){
   return ConstVectorView(v.data()+ start, v.size()-start, v.stride());
 }
Exemplo n.º 2
0
     ConstVectorView subvector(const VEC &v, uint start, uint stop){
   assert(start<=stop && start <v.size());
   uint size = 1+stop-start;
   return ConstVectorView(v.data()+ start, size, v.stride());
 }
Exemplo n.º 3
0
     VectorView subvector(VEC &v, uint start){
   assert(start <v.size());
   return VectorView(v.data()+start, v.size()-start, v.stride());
 }