mgcpp
A C++ Math Library Based on CUDA
mgblas_helpers.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_KERNELS_MGBLAS_HELPERS_HPP_
8 #define _MGCPP_KERNELS_MGBLAS_HELPERS_HPP_
9 
10 #include <mgcpp/kernels/bits/fill.cuh>
11 #include <mgcpp/system/outcome.hpp>
12 
13 #include <cstdlib>
14 
15 namespace mgcpp {
16 template <typename Type>
17 inline outcome::result<void> mgblas_fill(Type* arr, Type value, size_t n);
18 
19 template <typename From, typename To>
20 inline outcome::result<void> mgblas_convert_copy(From const* from,
21  To* to,
22  size_t n);
23 } // namespace mgcpp
24 
26 #endif
Definition: adapter_base.hpp:12
BOOST_OUTCOME_V2_NAMESPACE::std_result< R > result
Definition: outcome.hpp:8
outcome::result< void > mgblas_fill(Type *arr, Type value, size_t n)
outcome::result< void > mgblas_convert_copy(From const *from, To *to, size_t n)