Do more. Code less. Free software for GPU computing.
<scroll to top>

Convolution (1D, 2D, 3D)

Convolutions

One dimensional convolution. More...

Device pointer interface: 1D convolution

Parameters:
[out]d_outThe convolved output
[in]niSize of input signal
[in]d_inInput signal
[in]batchiNumber of input signal tiles
[in]nfSize of input filter
[in]d_filtInput filter
[in]batchfNumber of input signal tiles
shapetype of convolution

afError af_conv_SS (float *d_out, unsigned ni, const float *d_in, unsigned batchi, unsigned nf, const float *d_filt, unsigned batchf, afConv shape)
 Single precision, real input, real filter, one dimensional convolution.
afError af_conv_CS (cuComplex *d_out, unsigned ni, const cuComplex *d_in, unsigned batchi, unsigned nf, const float *d_filt, unsigned batchf, afConv shape)
 Single precision, complex input, real filter, one dimensional convolution.
afError af_conv_CC (cuComplex *d_out, unsigned ni, const cuComplex *d_in, unsigned batchi, unsigned nf, const cuComplex *d_filt, unsigned batchf, afConv shape)
 Float precision, complex input, complex filter, one dimensional convolution.
afError af_conv_DD (double *d_out, unsigned ni, const double *d_in, unsigned batchi, unsigned nf, const double *d_filt, unsigned batchf, afConv shape)
 Single precision, real input, real filter, one dimensional convolution.
afError af_conv_ZD (cuDoubleComplex *d_out, unsigned ni, const cuDoubleComplex *d_in, unsigned batchi, unsigned nf, const double *d_filt, unsigned batchf, afConv shape)
 Double precision, complex input, real filter, one dimensional convolution.
afError af_conv_ZZ (cuDoubleComplex *d_out, unsigned ni, const cuDoubleComplex *d_in, unsigned batchi, unsigned nf, const cuDoubleComplex *d_filt, unsigned batchf, afConv shape)
 Double precision, complex input, complex filter, one dimensional convolution.

Device pointer interface: 2D convolution

Parameters:
[out]d_outThe convolved output
[in]miRows in input signal
[in]niColumns in input signal
[in]d_inInput signal
[in]batchiNumber of input signal tiles
[in]mfRows in the input filter
[in]nfColumns in the input filter
[in]d_filtInput filter
[in]batchfNumber of input signal tiles
[in]shapetype of convolution

afError af_conv2_SS (float *d_out, unsigned mi, unsigned ni, const float *d_in, unsigned batch_in, unsigned mf, unsigned nf, const float *d_filt, unsigned batch_filt, afConv shape)
 Single precision, real input, real filter, two dimensional convolution.
afError af_conv2_CS (cuComplex *d_out, unsigned mi, unsigned ni, const cuComplex *d_in, unsigned batch_in, unsigned mf, unsigned nf, const float *d_filt, unsigned batch_filt, afConv shape)
 Single precision, complex input, real filter, two dimensional convolution.
afError af_conv2_CC (cuComplex *d_out, unsigned mi, unsigned ni, const cuComplex *d_in, unsigned batch_in, unsigned mf, unsigned nf, const cuComplex *d_filt, unsigned batch_filt, afConv shape)
 Single precision, complex input, complex filter, two dimensional convolution.
afError af_conv2_DD (double *d_out, unsigned mi, unsigned ni, const double *d_in, unsigned batch_in, unsigned mf, unsigned nf, const double *d_filt, unsigned batch_filt, afConv shape)
 Double precision, real input, real filter, two dimensional convolution.
afError af_conv2_ZD (cuDoubleComplex *d_out, unsigned mi, unsigned ni, const cuDoubleComplex *d_in, unsigned batch_in, unsigned mf, unsigned nf, const double *d_filt, unsigned batch_filt, afConv shape)
 Double precision, complex input, real filter, two dimensional convolution.
afError af_conv2_ZZ (cuDoubleComplex *d_out, unsigned mi, unsigned ni, const cuDoubleComplex *d_in, unsigned batch_in, unsigned mf, unsigned nf, const cuDoubleComplex *d_filt, unsigned batch_filt, afConv shape)
 Double precision, complex input, complex filter, two dimensional convolution.

Device pointer interface: filter is device pointer

Parameters:
[out]d_outThe convolved output
[in]ndimsiNumber of dimensions in input signal
[in]dimsiDimensions of input signal
[in]d_inInput signal
[in]batchiNumber of input signal tiles
[in]ndimsfNumber of dimensions in input filter
[in]dimsfDimensions of input filter
[in]d_filtInput filter
[in]batchfNumber of input signal tiles
[in]shapetype of convolution

afError af_convn_SS (float *d_out, unsigned ndimsi, unsigned *dimsi, const float *d_in, unsigned batchi, unsigned ndimsf, unsigned *dimsf, const float *d_filt, unsigned batchf, afConv shape)
 Single precision, real input, real filter, multi-dimensional convolution.
afError af_convn_CS (cuComplex *d_out, unsigned ndimsi, unsigned *dimsi, const cuComplex *d_in, unsigned batchi, unsigned ndimsf, unsigned *dimsf, const float *d_filt, unsigned batchf, afConv shape)
 Single precision, complex input, real filter, multi-dimensional convolution.
afError af_convn_CC (cuComplex *d_out, unsigned ndimsi, unsigned *dimsi, const cuComplex *d_in, unsigned batchi, unsigned ndimsf, unsigned *dimsf, const cuComplex *d_filt, unsigned batchf, afConv shape)
 Single precision, complex input, complex filter, multi-dimensional convolution.
afError af_convn_DD (double *d_out, unsigned ndimsi, unsigned *dimsi, const double *d_in, unsigned batchi, unsigned ndimsf, unsigned *dimsf, const double *d_filt, unsigned batchf, afConv shape)
 Double precision, real input, real filter, multi-dimensional convolution.
afError af_convn_ZD (cuDoubleComplex *d_out, unsigned ndimsi, unsigned *dimsi, const cuDoubleComplex *d_in, unsigned batchi, unsigned ndimsf, unsigned *dimsf, const double *d_filt, unsigned batchf, afConv shape)
 Double precision, complex input, real filter, multi-dimensional convolution.
afError af_convn_ZZ (cuDoubleComplex *d_out, unsigned ndimsi, unsigned *dimsi, const cuDoubleComplex *d_in, unsigned batchi, unsigned ndimsf, unsigned *dimsf, const cuDoubleComplex *d_filt, unsigned batchf, afConv shape)
 Double precision, complex input, complex filter, multi-dimensional convolution.

Device pointer interface: filter is host pointer

Multi-dimensional convolution (filter on host)
Parameters:
[out]d_outThe convolved output
[in]ndimsiNumber of dimensions in input signal
[in]dimsiDimensions of input signal
[in]d_inInput signal
[in]batchiNumber of input signal tiles
[in]ndimsfNumber of dimensions in input filter
[in]dimsfDimensions of input filter
[in]h_filtInput filter (on host)
[in]batchfNumber of input signal tiles
[in]shapetype of convolution

afError af_convh_SS (float *d_out, unsigned ndimsi, unsigned *dimsi, const float *d_in, unsigned batchi, unsigned ndimsf, unsigned *dimsf, const float *h_filt, unsigned batchf, afConv shape)
 Single precision, real input, real filter, multi-dimensional convolution.
afError af_convh_CS (cuComplex *d_out, unsigned ndimsi, unsigned *dimsi, const cuComplex *d_in, unsigned batchi, unsigned ndimsf, unsigned *dimsf, const float *h_filt, unsigned batchf, afConv shape)
 Single precision, complex input, real filter, multi-dimensional convolution.
afError af_convh_DD (double *d_out, unsigned ndimsi, unsigned *dimsi, const double *d_in, unsigned batchi, unsigned ndimsf, unsigned *dimsf, const double *h_filt, unsigned batchf, afConv shape)
 Double precision, real input, real filter, multi-dimensional convolution.
afError af_convh_ZD (cuDoubleComplex *d_out, unsigned ndimsi, unsigned *dimsi, const cuDoubleComplex *d_in, unsigned batchi, unsigned ndimsf, unsigned *dimsf, const double *h_filt, unsigned batchf, afConv shape)
 Double precision, complex input, real filter, multi-dimensional convolution.

Detailed Description

One dimensional convolution.


Function Documentation

afError af_conv_SS ( float *  d_out,
unsigned  ni,
const float *  d_in,
unsigned  batchi,
unsigned  nf,
const float *  d_filt,
unsigned  batchf,
afConv  shape 
)

Single precision, real input, real filter, one dimensional convolution.

afError af_conv_CS ( cuComplex *  d_out,
unsigned  ni,
const cuComplex *  d_in,
unsigned  batchi,
unsigned  nf,
const float *  d_filt,
unsigned  batchf,
afConv  shape 
)

Single precision, complex input, real filter, one dimensional convolution.

afError af_conv_CC ( cuComplex *  d_out,
unsigned  ni,
const cuComplex *  d_in,
unsigned  batchi,
unsigned  nf,
const cuComplex *  d_filt,
unsigned  batchf,
afConv  shape 
)

Float precision, complex input, complex filter, one dimensional convolution.

afError af_conv_DD ( double *  d_out,
unsigned  ni,
const double *  d_in,
unsigned  batchi,
unsigned  nf,
const double *  d_filt,
unsigned  batchf,
afConv  shape 
)

Single precision, real input, real filter, one dimensional convolution.

afError af_conv_ZD ( cuDoubleComplex *  d_out,
unsigned  ni,
const cuDoubleComplex *  d_in,
unsigned  batchi,
unsigned  nf,
const double *  d_filt,
unsigned  batchf,
afConv  shape 
)

Double precision, complex input, real filter, one dimensional convolution.

afError af_conv_ZZ ( cuDoubleComplex *  d_out,
unsigned  ni,
const cuDoubleComplex *  d_in,
unsigned  batchi,
unsigned  nf,
const cuDoubleComplex *  d_filt,
unsigned  batchf,
afConv  shape 
)

Double precision, complex input, complex filter, one dimensional convolution.

afError af_conv2_SS ( float *  d_out,
unsigned  mi,
unsigned  ni,
const float *  d_in,
unsigned  batch_in,
unsigned  mf,
unsigned  nf,
const float *  d_filt,
unsigned  batch_filt,
afConv  shape 
)

Single precision, real input, real filter, two dimensional convolution.

afError af_conv2_CS ( cuComplex *  d_out,
unsigned  mi,
unsigned  ni,
const cuComplex *  d_in,
unsigned  batch_in,
unsigned  mf,
unsigned  nf,
const float *  d_filt,
unsigned  batch_filt,
afConv  shape 
)

Single precision, complex input, real filter, two dimensional convolution.

afError af_conv2_CC ( cuComplex *  d_out,
unsigned  mi,
unsigned  ni,
const cuComplex *  d_in,
unsigned  batch_in,
unsigned  mf,
unsigned  nf,
const cuComplex *  d_filt,
unsigned  batch_filt,
afConv  shape 
)

Single precision, complex input, complex filter, two dimensional convolution.

afError af_conv2_DD ( double *  d_out,
unsigned  mi,
unsigned  ni,
const double *  d_in,
unsigned  batch_in,
unsigned  mf,
unsigned  nf,
const double *  d_filt,
unsigned  batch_filt,
afConv  shape 
)

Double precision, real input, real filter, two dimensional convolution.

afError af_conv2_ZD ( cuDoubleComplex *  d_out,
unsigned  mi,
unsigned  ni,
const cuDoubleComplex *  d_in,
unsigned  batch_in,
unsigned  mf,
unsigned  nf,
const double *  d_filt,
unsigned  batch_filt,
afConv  shape 
)

Double precision, complex input, real filter, two dimensional convolution.

afError af_conv2_ZZ ( cuDoubleComplex *  d_out,
unsigned  mi,
unsigned  ni,
const cuDoubleComplex *  d_in,
unsigned  batch_in,
unsigned  mf,
unsigned  nf,
const cuDoubleComplex *  d_filt,
unsigned  batch_filt,
afConv  shape 
)

Double precision, complex input, complex filter, two dimensional convolution.

afError af_convn_SS ( float *  d_out,
unsigned  ndimsi,
unsigned *  dimsi,
const float *  d_in,
unsigned  batchi,
unsigned  ndimsf,
unsigned *  dimsf,
const float *  d_filt,
unsigned  batchf,
afConv  shape 
)

Single precision, real input, real filter, multi-dimensional convolution.

afError af_convn_CS ( cuComplex *  d_out,
unsigned  ndimsi,
unsigned *  dimsi,
const cuComplex *  d_in,
unsigned  batchi,
unsigned  ndimsf,
unsigned *  dimsf,
const float *  d_filt,
unsigned  batchf,
afConv  shape 
)

Single precision, complex input, real filter, multi-dimensional convolution.

afError af_convn_CC ( cuComplex *  d_out,
unsigned  ndimsi,
unsigned *  dimsi,
const cuComplex *  d_in,
unsigned  batchi,
unsigned  ndimsf,
unsigned *  dimsf,
const cuComplex *  d_filt,
unsigned  batchf,
afConv  shape 
)

Single precision, complex input, complex filter, multi-dimensional convolution.

afError af_convn_DD ( double *  d_out,
unsigned  ndimsi,
unsigned *  dimsi,
const double *  d_in,
unsigned  batchi,
unsigned  ndimsf,
unsigned *  dimsf,
const double *  d_filt,
unsigned  batchf,
afConv  shape 
)

Double precision, real input, real filter, multi-dimensional convolution.

afError af_convn_ZD ( cuDoubleComplex *  d_out,
unsigned  ndimsi,
unsigned *  dimsi,
const cuDoubleComplex *  d_in,
unsigned  batchi,
unsigned  ndimsf,
unsigned *  dimsf,
const double *  d_filt,
unsigned  batchf,
afConv  shape 
)

Double precision, complex input, real filter, multi-dimensional convolution.

afError af_convn_ZZ ( cuDoubleComplex *  d_out,
unsigned  ndimsi,
unsigned *  dimsi,
const cuDoubleComplex *  d_in,
unsigned  batchi,
unsigned  ndimsf,
unsigned *  dimsf,
const cuDoubleComplex *  d_filt,
unsigned  batchf,
afConv  shape 
)

Double precision, complex input, complex filter, multi-dimensional convolution.

afError af_convh_SS ( float *  d_out,
unsigned  ndimsi,
unsigned *  dimsi,
const float *  d_in,
unsigned  batchi,
unsigned  ndimsf,
unsigned *  dimsf,
const float *  h_filt,
unsigned  batchf,
afConv  shape 
)

Single precision, real input, real filter, multi-dimensional convolution.

afError af_convh_CS ( cuComplex *  d_out,
unsigned  ndimsi,
unsigned *  dimsi,
const cuComplex *  d_in,
unsigned  batchi,
unsigned  ndimsf,
unsigned *  dimsf,
const float *  h_filt,
unsigned  batchf,
afConv  shape 
)

Single precision, complex input, real filter, multi-dimensional convolution.

afError af_convh_DD ( double *  d_out,
unsigned  ndimsi,
unsigned *  dimsi,
const double *  d_in,
unsigned  batchi,
unsigned  ndimsf,
unsigned *  dimsf,
const double *  h_filt,
unsigned  batchf,
afConv  shape 
)

Double precision, real input, real filter, multi-dimensional convolution.

afError af_convh_ZD ( cuDoubleComplex *  d_out,
unsigned  ndimsi,
unsigned *  dimsi,
const cuDoubleComplex *  d_in,
unsigned  batchi,
unsigned  ndimsf,
unsigned *  dimsf,
const double *  h_filt,
unsigned  batchf,
afConv  shape 
)

Double precision, complex input, real filter, multi-dimensional convolution.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines