Exemple #1
0
 vector_slice<VectorType> project(viennacl::vector_range<VectorType> & vec, viennacl::slice const & s1)
 {
   assert(s1.size() <= vec.size() && bool("Size of slice larger than vector proxy!"));
   return vector_slice<VectorType>(vec, viennacl::range(vec.start() + s1.start(), s1.stride(), s1.size()));
 }
Exemple #2
0
 vcl_size_t
 internal_size(viennacl::vector_range<VectorType> const & vec)
 {
   return vec.get().internal_size(); 
 }
Exemple #3
0
 vector_range<VectorType> project(viennacl::vector_range<VectorType> & vec, viennacl::range const & r1)
 {
   assert(r1.size() <= vec.size() && bool("Size of range invalid!"));
   return vector_range<VectorType>(vec, viennacl::range(vec.start() + r1.start(), vec.start() + r1.start() + r1.size()));
 }
Exemple #4
0
 typename result_of::size_type<VectorType>::type 
 internal_size(viennacl::vector_range<VectorType> const & vec)
 {
   return vec.get().internal_size(); 
 }