mgcpp
A C++ Math Library Based on CUDA
sum.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_OPERATIONS_SUM_HPP_
8 #define _MGCPP_OPERATIONS_SUM_HPP_
9 
14 
15 #include <cstdlib>
16 
17 namespace mgcpp {
18 namespace strict {
19 template <typename DeviceVec, typename Type>
20 inline decltype(auto) sum(dense_vector<DeviceVec, Type> const& vec);
21 
22 template <typename DenseMat, typename Type>
23 inline decltype(auto) sum(dense_matrix<DenseMat, Type> const& mat);
24 } // namespace strict
25 } // namespace mgcpp
26 
27 #include <mgcpp/operations/sum.tpp>
28 #endif
Definition: adapter_base.hpp:12
decltype(auto) sum(dense_vector< DeviceVec, Type > const &vec)