NaiveConvolution< BorderMode > Class Template Reference

Computes the two-dimensional convolution. More...

Static Public Member Functions

template
<
typename
eT
,
typename
Border
=
BorderMode
>
static std::enable_if< std::is_same< Border, ValidConvolution >::value, void >::type Convolution (const arma::Mat< eT > &input, const arma::Mat< eT > &filter, arma::Mat< eT > &output, const size_t dW=1, const size_t dH=1, const size_t dilationW=1, const size_t dilationH=1)
 
template
<
typename
eT
,
typename
Border
=
BorderMode
>
static std::enable_if< std::is_same< Border, FullConvolution >::value, void >::type Convolution (const arma::Mat< eT > &input, const arma::Mat< eT > &filter, arma::Mat< eT > &output, const size_t dW=1, const size_t dH=1, const size_t dilationW=1, const size_t dilationH=1)
 
template
<
typename
eT
>
static void Convolution (const arma::Cube< eT > &input, const arma::Cube< eT > &filter, arma::Cube< eT > &output, const size_t dW=1, const size_t dH=1, const size_t dilationW=1, const size_t dilationH=1)
 
template
<
typename
eT
>
static void Convolution (const arma::Mat< eT > &input, const arma::Cube< eT > &filter, arma::Cube< eT > &output, const size_t dW=1, const size_t dH=1, const size_t dilationW=1, const size_t dilationH=1)
 
template
<
typename
eT
>
static void Convolution (const arma::Cube< eT > &input, const arma::Mat< eT > &filter, arma::Cube< eT > &output, const size_t dW=1, const size_t dH=1, const size_t dilationW=1, const size_t dilationH=1)
 

Detailed Description


template
<
typename
BorderMode
=
FullConvolution
>

class mlpack::ann::NaiveConvolution< BorderMode >

Computes the two-dimensional convolution.

This class allows specification of the type of the border type. The convolution can be compute with the valid border type of the full border type (default).

FullConvolution: returns the full two-dimensional convolution. ValidConvolution: returns only those parts of the convolution that are computed without the zero-padded edges.

Template Parameters
BorderModeType of the border mode (FullConvolution or ValidConvolution).

Definition at line 35 of file naive_convolution.hpp.

Member Function Documentation

◆ Convolution() [1/5]

static std::enable_if< std::is_same<Border, ValidConvolution>::value, void>::type Convolution ( const arma::Mat< eT > &  input,
const arma::Mat< eT > &  filter,
arma::Mat< eT > &  output,
const size_t  dW = 1,
const size_t  dH = 1,
const size_t  dilationW = 1,
const size_t  dilationH = 1 
)
inlinestatic

◆ Convolution() [2/5]

static std::enable_if< std::is_same<Border, FullConvolution>::value, void>::type Convolution ( const arma::Mat< eT > &  input,
const arma::Mat< eT > &  filter,
arma::Mat< eT > &  output,
const size_t  dW = 1,
const size_t  dH = 1,
const size_t  dilationW = 1,
const size_t  dilationH = 1 
)
inlinestatic

◆ Convolution() [3/5]

static void Convolution ( const arma::Cube< eT > &  input,
const arma::Cube< eT > &  filter,
arma::Cube< eT > &  output,
const size_t  dW = 1,
const size_t  dH = 1,
const size_t  dilationW = 1,
const size_t  dilationH = 1 
)
inlinestatic

◆ Convolution() [4/5]

static void Convolution ( const arma::Mat< eT > &  input,
const arma::Cube< eT > &  filter,
arma::Cube< eT > &  output,
const size_t  dW = 1,
const size_t  dH = 1,
const size_t  dilationW = 1,
const size_t  dilationH = 1 
)
inlinestatic

◆ Convolution() [5/5]

static void Convolution ( const arma::Cube< eT > &  input,
const arma::Mat< eT > &  filter,
arma::Cube< eT > &  output,
const size_t  dW = 1,
const size_t  dH = 1,
const size_t  dilationW = 1,
const size_t  dilationH = 1 
)
inlinestatic

The documentation for this class was generated from the following file:
  • /home/ryan/src/mlpack.org/_src/mlpack-git/src/mlpack/methods/ann/convolution_rules/naive_convolution.hpp