ViennaCL - The Vienna Computing Library  1.2.0
block_vector.hpp
Go to the documentation of this file.
1 #ifndef VIENNACL_LINALG_DETAIL_SPAI_BLOCK_VECTOR_HPP
2 #define VIENNACL_LINALG_DETAIL_SPAI_BLOCK_VECTOR_HPP
3 
4 /* =========================================================================
5  Copyright (c) 2010-2011, Institute for Microelectronics,
6  Institute for Analysis and Scientific Computing,
7  TU Wien.
8 
9  -----------------
10  ViennaCL - The Vienna Computing Library
11  -----------------
12 
13  Project Head: Karl Rupp rupp@iue.tuwien.ac.at
14 
15  (A list of authors and contributors can be found in the PDF manual)
16 
17  License: MIT (X11), see file LICENSE in the base directory
18 ============================================================================= */
19 
20 #include <utility>
21 #include <iostream>
22 #include <fstream>
23 #include <string>
24 #include <algorithm>
25 #include <vector>
26 #include "viennacl/ocl/backend.hpp"
27 #include "viennacl/tools/tools.hpp"
28 
35 namespace viennacl
36 {
37  namespace linalg
38  {
39  namespace detail
40  {
41  namespace spai
42  {
43 
48  class block_vector{
49  public:
51  }
55  viennacl::ocl::handle<cl_mem>& handle(){ return _elements; }
59  viennacl::ocl::handle<cl_mem>& handle1() { return _start_block_inds; }
60 
64  const viennacl::ocl::handle<cl_mem>& handle() const { return _elements; }
68  const viennacl::ocl::handle<cl_mem>& handle1() const { return _start_block_inds; }
69  private:
70  //unsigned int _vectorIndex;
72  viennacl::ocl::handle<cl_mem> _start_block_inds;
73  };
74  }
75  }
76  }
77 }
78 #endif