mgcpp
A C++ Math Library Based on CUDA
row_view.hpp
Go to the documentation of this file.
1 
2 // Copyright RedPortal, mujjingun 2017 - 2018.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 #ifndef _MGCPP_MATRIX_ROW_VIEW_HPP_
8 #define _MGCPP_MATRIX_ROW_VIEW_HPP_
9 
13 
14 #include <cstdlib>
15 #include <initializer_list>
16 
17 namespace mgcpp {
18 // template<typename DenseMat,
19 // typename Type,
20 // size_t DeviceId>
21 // class row_view
22 // : public dense_vector<row_view<DenseMat, Type, DeviceId>,
23 // Type,
24 // DeviceId>
25 // {
26 // public:
27 // using this_type = row_view<DenseMat, Type, DeviceId>;
28 // using value_type = Type;
29 // using result_type = this_type;
30 // using allocator_type = typename DenseMat::allocator_type;
31 
32 // private:
33 // DenseMat* _matrix;
34 // size_t _row_idx;
35 // allocator_type _allocator;
36 
37 // public:
38 // inline row_view() = delete;
39 
40 // inline ~row_view() = default;
41 
42 // inline
43 // row_view(dense_matrix<DenseMat, Type, DeviceId>& mat, size_t i) noexcept;
44 
45 // inline
46 // row_view(row_view<DenseMat, Type, DeviceId> const& other) = delete;
47 
48 // inline
49 // row_view(row_view<DenseMat, Type, DeviceId>&& other) noexcept;
50 
51 // inline row_view<DenseMat, Type, DeviceId>&
52 // operator=(row_view<DenseMat, Type, DeviceId> const& other);
53 
54 // inline row_view<DenseMat, Type, DeviceId>&
55 // operator=(row_view<DenseMat, Type, DeviceId>&& other) noexcept;
56 
57 // inline row_view<DenseMat, Type, DeviceId>&
58 // operator=(std::initializer_list<Type> const& init);
59 
60 // template<typename DenseVec>
61 // inline row_view<DenseMat, Type, DeviceId>&
62 // operator=(dense_vector<DenseVec, Type, row, DeviceId> const& vec);
63 
64 // inline void
65 // copy_to_host(Type* host_p) const;
66 
67 // inline Type
68 // check_value(size_t i) const;
69 
70 // inline Type const*
71 // data() const noexcept;
72 
73 // inline Type*
74 // data_mutable() noexcept;
75 
76 // inline thread_context*
77 // context() const noexcept;
78 
79 // inline size_t
80 // shape() const noexcept;
81 //};
82 } // namespace mgcpp
83 
84 //#include <mgcpp/matrix/row_view.tpp>
85 #endif
Definition: adapter_base.hpp:12