mgcpp
A C++ Math Library Based on CUDA
include
mgcpp
operations
pad.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_PAD_HPP_
8
#define _MGCPP_OPERATIONS_PAD_HPP_
9
10
#include <
mgcpp/matrix/dense_matrix.hpp
>
11
#include <
mgcpp/matrix/device_matrix.hpp
>
12
#include <
mgcpp/type_traits/host_value_type.hpp
>
13
#include <
mgcpp/vector/dense_vector.hpp
>
14
#include <
mgcpp/vector/device_vector.hpp
>
15
16
#include <tuple>
17
18
namespace
mgcpp
{
21
using
pad_size_t
= std::pair<size_t, size_t>;
22
23
namespace
strict {
31
template
<
typename
DenseVec,
typename
Type>
32
inline
decltype(
auto
)
pad
(
dense_vector<DenseVec, Type>
const
& vec,
33
pad_size_t
pad
,
34
typename
value_type<Type>::type
pad_constant =
35
typename
value_type<Type>::type
{});
36
}
// namespace strict
37
}
// namespace mgcpp
38
39
#include <
mgcpp/operations/pad.tpp
>
40
#endif
mgcpp
Definition:
adapter_base.hpp:12
dense_vector.hpp
device_matrix.hpp
host_value_type.hpp
mgcpp::strict::pad
decltype(auto) pad(dense_vector< DenseVec, Type > const &vec, pad_size_t pad, typename value_type< Type >::type pad_constant=typename value_type< Type >::type{})
dense_matrix.hpp
mgcpp::dense_vector
Definition:
dense_vector.hpp:15
mgcpp::value_type::type
Type type
Definition:
host_value_type.hpp:18
mgcpp::pad_size_t
std::pair< size_t, size_t > pad_size_t
Definition:
pad.hpp:21
pad.tpp
device_vector.hpp
Generated by
1.8.13