7 #ifndef _MGCPP_OPERATIONS_ABSOLUTE_HPP_ 8 #define _MGCPP_OPERATIONS_ABSOLUTE_HPP_ 20 template <
typename Type,
23 inline device_vector<Type, typename DenseVec::allocator_type>
map(
24 dense_vector<DenseVec, Type>
const& vec);
26 template <
typename Type,
29 inline device_matrix<Type, typename DenseMat::allocator_type>
map(
30 dense_matrix<DenseMat, Type>
const& mat);
35 template <
typename DenseVec,
typename Type>
36 inline decltype(
auto)
abs(dense_vector<DenseVec, Type> const& vec);
41 template <typename DenseMat, typename Type>
42 inline decltype(auto)
abs(dense_matrix<DenseMat, Type> const& mat);
44 template <typename DenseVec, typename Type>
45 inline decltype(auto)
sin(dense_vector<DenseVec, Type> const& vec);
47 template <typename DenseMat, typename Type>
48 inline decltype(auto)
sin(dense_matrix<DenseMat, Type> const& mat);
50 template <typename DenseVec, typename Type>
51 inline decltype(auto)
cos(dense_vector<DenseVec, Type> const& vec);
53 template <typename DenseMat, typename Type>
54 inline decltype(auto)
cos(dense_matrix<DenseMat, Type> const& mat);
56 template <typename DenseVec, typename Type>
57 inline decltype(auto)
tan(dense_vector<DenseVec, Type> const& vec);
59 template <typename DenseMat, typename Type>
60 inline decltype(auto)
tan(dense_matrix<DenseMat, Type> const& mat);
62 template <typename DenseVec, typename Type>
63 inline decltype(auto)
sinh(dense_vector<DenseVec, Type> const& vec);
65 template <typename DenseMat, typename Type>
66 inline decltype(auto)
sinh(dense_matrix<DenseMat, Type> const& mat);
68 template <typename DenseVec, typename Type>
69 inline decltype(auto)
cosh(dense_vector<DenseVec, Type> const& vec);
71 template <typename DenseMat, typename Type>
72 inline decltype(auto)
cosh(dense_matrix<DenseMat, Type> const& mat);
74 template <typename DenseVec, typename Type>
75 inline decltype(auto)
tanh(dense_vector<DenseVec, Type> const& vec);
77 template <typename DenseMat, typename Type>
78 inline decltype(auto)
tanh(dense_matrix<DenseMat, Type> const& mat);
80 template <typename DenseVec, typename Type>
81 inline decltype(auto)
relu(dense_vector<DenseVec, Type> const& vec);
83 template <typename DenseMat, typename Type>
84 inline decltype(auto)
relu(dense_matrix<DenseMat, Type> const& mat);
88 #include <mgcpp/operations/map.tpp> Definition: adapter_base.hpp:12
decltype(auto) tan(dense_vector< DenseVec, Type > const &vec)
decltype(auto) sinh(dense_vector< DenseVec, Type > const &vec)
decltype(auto) abs(dense_vector< DenseVec, Type > const &vec)
decltype(auto) tanh(dense_vector< DenseVec, Type > const &vec)
decltype(auto) cos(dense_vector< DenseVec, Type > const &vec)
decltype(auto) cosh(dense_vector< DenseVec, Type > const &vec)
device_vector< Type, typename DenseVec::allocator_type > map(dense_vector< DenseVec, Type > const &vec)
decltype(auto) sin(dense_vector< DenseVec, Type > const &vec)
BOOST_OUTCOME_V2_NAMESPACE::std_result< R > result
Definition: outcome.hpp:8
decltype(auto) relu(dense_vector< DenseVec, Type > const &vec)