Expression Templates Library (ETL)
Static Public Member Functions | List of all members
etl::impl::standard::upsample_2d Struct Reference

Functor for 2D Upsampling. More...

#include <upsample.hpp>

Static Public Member Functions

template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, typename A , typename M >
static void upsample_block_2d (A &&in, M &m, size_t j, size_t k)
 Upsample a block of the sub expression. More...
 
template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, typename A , typename M >
static void upsample_block_3d (A &&in, M &m, size_t q, size_t j, size_t k)
 Upsample a block of the sub expression. More...
 
template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, typename A , typename M >
static void upsample_block_4d (A &&in, M &m, size_t p, size_t q, size_t j, size_t k)
 Upsample a block of the sub expression. More...
 
template<typename A , typename M >
static void upsample_block_2d (A &&in, M &m, size_t j, size_t k, size_t c1, size_t c2, size_t s1, size_t s2, size_t p1, size_t p2)
 Upsample a block of the sub expression. More...
 
template<typename A , typename M >
static void upsample_block_3d (A &&in, M &m, size_t q, size_t j, size_t k, size_t c1, size_t c2, size_t s1, size_t s2, size_t p1, size_t p2)
 Upsample a block of the sub expression. More...
 
template<typename A , typename M >
static void upsample_block_4d (A &&in, M &m, size_t p, size_t q, size_t j, size_t k, size_t c1, size_t c2, size_t s1, size_t s2, size_t p1, size_t p2)
 Upsample a block of the sub expression. More...
 
template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, etl_2d A, typename M >
static void apply (A &&in, M &&m)
 Apply the functor on sub and store the result in m. More...
 
template<etl_2d A, typename M >
static void apply (A &&in, M &&m, size_t c1, size_t c2, size_t s1, size_t s2, size_t p1, size_t p2)
 Apply the functor on sub and store the result in m. More...
 
template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, etl_3d A, typename M >
static void apply (A &&in, M &&m)
 Apply the functor on sub and store the result in m. More...
 
template<etl_3d A, typename M >
static void apply (A &&in, M &&m, size_t c1, size_t c2, size_t s1, size_t s2, size_t p1, size_t p2)
 Apply the functor on sub and store the result in m. More...
 
template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, etl_4d A, typename M >
static void apply (A &&in, M &&m)
 Apply the functor on sub and store the result in m. More...
 
template<etl_4d A, typename M >
static void apply (A &&in, M &&m, size_t c1, size_t c2, size_t s1, size_t s2, size_t p1, size_t p2)
 Apply the functor on sub and store the result in m. More...
 
template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, etl_5d_and_plus A, typename M >
static void apply (A &&in, M &m)
 Apply the functor on sub and store the result in m. More...
 
template<etl_5d_and_plus A, typename M >
static void apply (A &&in, M &m, size_t c1, size_t c2, size_t s1, size_t s2, size_t p1, size_t p2)
 Apply the functor on sub and store the result in m. More...
 

Detailed Description

Functor for 2D Upsampling.

Member Function Documentation

◆ apply() [1/8]

template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, etl_2d A, typename M >
static void etl::impl::standard::upsample_2d::apply ( A &&  in,
M &&  m 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio

◆ apply() [2/8]

template<etl_2d A, typename M >
static void etl::impl::standard::upsample_2d::apply ( A &&  in,
M &&  m,
size_t  c1,
size_t  c2,
size_t  s1,
size_t  s2,
size_t  p1,
size_t  p2 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
c1The first dimension pooling ratio
c2The second dimension pooling ratio

◆ apply() [3/8]

template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, etl_3d A, typename M >
static void etl::impl::standard::upsample_2d::apply ( A &&  in,
M &&  m 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio

◆ apply() [4/8]

template<etl_3d A, typename M >
static void etl::impl::standard::upsample_2d::apply ( A &&  in,
M &&  m,
size_t  c1,
size_t  c2,
size_t  s1,
size_t  s2,
size_t  p1,
size_t  p2 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
c1The first dimension pooling ratio
c2The second dimension pooling ratio

◆ apply() [5/8]

template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, etl_4d A, typename M >
static void etl::impl::standard::upsample_2d::apply ( A &&  in,
M &&  m 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio

◆ apply() [6/8]

template<etl_4d A, typename M >
static void etl::impl::standard::upsample_2d::apply ( A &&  in,
M &&  m,
size_t  c1,
size_t  c2,
size_t  s1,
size_t  s2,
size_t  p1,
size_t  p2 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
c1The first dimension pooling ratio
c2The second dimension pooling ratio

◆ apply() [7/8]

template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, etl_5d_and_plus A, typename M >
static void etl::impl::standard::upsample_2d::apply ( A &&  in,
M &  m 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio

◆ apply() [8/8]

template<etl_5d_and_plus A, typename M >
static void etl::impl::standard::upsample_2d::apply ( A &&  in,
M &  m,
size_t  c1,
size_t  c2,
size_t  s1,
size_t  s2,
size_t  p1,
size_t  p2 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
c1The first dimension pooling ratio
c2The second dimension pooling ratio

◆ upsample_block_2d() [1/2]

template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, typename A , typename M >
static void etl::impl::standard::upsample_2d::upsample_block_2d ( A &&  in,
M &  m,
size_t  j,
size_t  k 
)
inlinestatic

Upsample a block of the sub expression.

Parameters
inThe sub expression
jThe first index of the block
kThe second index of the block
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio

◆ upsample_block_2d() [2/2]

template<typename A , typename M >
static void etl::impl::standard::upsample_2d::upsample_block_2d ( A &&  in,
M &  m,
size_t  j,
size_t  k,
size_t  c1,
size_t  c2,
size_t  s1,
size_t  s2,
size_t  p1,
size_t  p2 
)
inlinestatic

Upsample a block of the sub expression.

Parameters
inThe sub expression
jThe first index of the block
kThe second index of the block
c1The first dimension pooling ratio
c2The second dimension pooling ratio

◆ upsample_block_3d() [1/2]

template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, typename A , typename M >
static void etl::impl::standard::upsample_2d::upsample_block_3d ( A &&  in,
M &  m,
size_t  q,
size_t  j,
size_t  k 
)
inlinestatic

Upsample a block of the sub expression.

Parameters
inThe sub expression
jThe first index of the block
kThe second index of the block
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio

◆ upsample_block_3d() [2/2]

template<typename A , typename M >
static void etl::impl::standard::upsample_2d::upsample_block_3d ( A &&  in,
M &  m,
size_t  q,
size_t  j,
size_t  k,
size_t  c1,
size_t  c2,
size_t  s1,
size_t  s2,
size_t  p1,
size_t  p2 
)
inlinestatic

Upsample a block of the sub expression.

Parameters
inThe sub expression
jThe first index of the block
kThe second index of the block
c1The first dimension pooling ratio
c2The second dimension pooling ratio

◆ upsample_block_4d() [1/2]

template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, typename A , typename M >
static void etl::impl::standard::upsample_2d::upsample_block_4d ( A &&  in,
M &  m,
size_t  p,
size_t  q,
size_t  j,
size_t  k 
)
inlinestatic

Upsample a block of the sub expression.

Parameters
inThe sub expression
jThe first index of the block
kThe second index of the block
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio

◆ upsample_block_4d() [2/2]

template<typename A , typename M >
static void etl::impl::standard::upsample_2d::upsample_block_4d ( A &&  in,
M &  m,
size_t  p,
size_t  q,
size_t  j,
size_t  k,
size_t  c1,
size_t  c2,
size_t  s1,
size_t  s2,
size_t  p1,
size_t  p2 
)
inlinestatic

Upsample a block of the sub expression.

Parameters
inThe sub expression
jThe first index of the block
kThe second index of the block
c1The first dimension pooling ratio
c2The second dimension pooling ratio

The documentation for this struct was generated from the following file: