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