mgcpp
A C++ Math Library Based on CUDA
include
mgcpp
operations
add.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_ADDITION_HPP_
8
#define _MGCPP_OPERATIONS_ADDITION_HPP_
9
10
#include <
mgcpp/matrix/dense_matrix.hpp
>
11
#include <
mgcpp/matrix/device_matrix.hpp
>
12
#include <
mgcpp/vector/dense_vector.hpp
>
13
#include <
mgcpp/vector/device_vector.hpp
>
14
15
#include <cstdlib>
16
17
namespace
mgcpp
{
18
namespace
strict {
23
template
<
typename
LhsDenseMat,
typename
RhsDenseMat,
typename
Type>
24
inline
decltype(
auto
)
add
(
dense_matrix<LhsDenseMat, Type>
const
& lhs,
25
dense_matrix<RhsDenseMat, Type>
const
& rhs);
26
31
template
<
typename
LhsDenseVec,
typename
RhsDenseVec,
typename
Type>
32
inline
decltype(
auto
)
add
(
dense_vector<LhsDenseVec, Type>
const
& first,
33
dense_vector<RhsDenseVec, Type>
const
& second);
34
}
// namespace strict
35
}
// namespace mgcpp
36
37
#include <
mgcpp/operations/add.tpp
>
38
#endif
mgcpp
Definition:
adapter_base.hpp:12
dense_vector.hpp
mgcpp::strict::add
decltype(auto) add(dense_matrix< LhsDenseMat, Type > const &lhs, dense_matrix< RhsDenseMat, Type > const &rhs)
device_matrix.hpp
add.tpp
dense_matrix.hpp
mgcpp::dense_vector
Definition:
dense_vector.hpp:15
mgcpp::dense_matrix
Definition:
dense_matrix.hpp:15
device_vector.hpp
Generated by
1.8.13