mgcpp
A C++ Math Library Based on CUDA
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 
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,
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
Definition: adapter_base.hpp:12
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{})
Definition: dense_vector.hpp:15
Type type
Definition: host_value_type.hpp:18
std::pair< size_t, size_t > pad_size_t
Definition: pad.hpp:21