58#if AF_API_VERSION >= 37
91 const array &pos,
const int interp_dim,
92 const double idx_start,
const double idx_step,
123 const array &pos0,
const int interp_dim0,
const double idx_start_dim0,
const double idx_step_dim0,
124 const array &pos1,
const int interp_dim1,
const double idx_start_dim1,
const double idx_step_dim1,
167#if AF_API_VERSION >= 31
181#if AF_API_VERSION >= 31
195#if AF_API_VERSION >= 31
332#if AF_API_VERSION >= 31
346#if AF_API_VERSION >= 31
360#if AF_API_VERSION >= 31
458#if AF_API_VERSION >= 31
474 const double norm_factor = 1.0);
477#if AF_API_VERSION >= 31
491 const double norm_factor = 1.0);
494#if AF_API_VERSION >= 31
509 const double norm_factor = 1.0);
617 const dim4 stride,
const dim4 padding,
const dim4 dilation);
725#if AF_API_VERSION >= 34
742#if AF_API_VERSION >= 34
760#if AF_API_VERSION >= 35
803#if AF_API_VERSION >= 37
863#if AF_API_VERSION >= 37
900#if AF_API_VERSION >= 37
941 const af_array pos,
const int interp_dim,
942 const double idx_start,
const double idx_step,
944 const float off_grid);
979 const af_array pos,
const int interp_dim,
980 const double idx_start,
981 const double idx_step,
983 const float off_grid);
1021 const af_array pos0,
const int interp_dim0,
1022 const double idx_start_dim0,
1023 const double idx_step_dim0,
1024 const af_array pos1,
const int interp_dim1,
1025 const double idx_start_dim1,
1026 const double idx_step_dim1,
1028 const float off_grid);
1068 const af_array pos0,
const int interp_dim0,
1069 const double idx_start_dim0,
1070 const double idx_step_dim0,
1071 const af_array pos1,
const int interp_dim1,
1072 const double idx_start_dim1,
1073 const double idx_step_dim1,
1075 const float off_grid);
1092#if AF_API_VERSION >= 31
1123#if AF_API_VERSION >= 31
1155#if AF_API_VERSION >= 31
1185#if AF_API_VERSION >= 31
1216#if AF_API_VERSION >= 31
1248#if AF_API_VERSION >= 31
1264#if AF_API_VERSION >= 31
1282#if AF_API_VERSION >= 31
1301#if AF_API_VERSION >= 31
1321#if AF_API_VERSION >= 31
1340#if AF_API_VERSION >= 31
1358#if AF_API_VERSION >= 31
1441 const unsigned stride_dims,
const dim_t *strides,
1442 const unsigned padding_dims,
const dim_t *paddings,
1443 const unsigned dilation_dims,
const dim_t *dilations);
1563#if AF_API_VERSION >= 34
1580#if AF_API_VERSION >= 34
1599#if AF_API_VERSION >= 34
A multi dimensional data container.
Generic object that represents size and shape.
@ AF_PAD_ZERO
Out of bound values are 0.
@ AF_CONV_AUTO
ArrayFire automatically picks the right convolution algorithm.
@ AF_INTERP_LINEAR
Linear Interpolation.
@ AF_CONV_DEFAULT
Output of the convolution is the same size as input.
AFAPI array medfilt2(const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
C++ Interface for median filter.
AFAPI af_err af_medfilt2(af_array *out, const af_array in, const dim_t wind_length, const dim_t wind_width, const af_border_type edge_pad)
C Interface for median filter.
AFAPI array medfilt(const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
C++ Interface for median filter.
AFAPI af_err af_medfilt(af_array *out, const af_array in, const dim_t wind_length, const dim_t wind_width, const af_border_type edge_pad)
C Interface for median filter.
AFAPI array medfilt1(const array &in, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
C++ Interface for median filter.
AFAPI af_err af_medfilt1(af_array *out, const af_array in, const dim_t wind_width, const af_border_type edge_pad)
C Interface for 1D median filter.
AFAPI af_err af_approx1(af_array *out, const af_array in, const af_array pos, const af_interp_type method, const float off_grid)
C Interface for signals interpolation on one dimensional signals.
AFAPI af_err af_approx1_v2(af_array *out, const af_array in, const af_array pos, const af_interp_type method, const float off_grid)
C Interface for the version of af_approx1 that accepts a preallocated output array.
AFAPI af_err af_approx1_uniform(af_array *out, const af_array in, const af_array pos, const int interp_dim, const double idx_start, const double idx_step, const af_interp_type method, const float off_grid)
C Interface for signals interpolation on one dimensional signals along specified dimension.
AFAPI array approx1(const array &in, const array &pos, const interpType method=AF_INTERP_LINEAR, const float off_grid=0.0f)
C++ Interface for data interpolation on one-dimensional signals.
AFAPI af_err af_approx1_uniform_v2(af_array *out, const af_array in, const af_array pos, const int interp_dim, const double idx_start, const double idx_step, const af_interp_type method, const float off_grid)
C Interface for the version of af_approx1_uniform that accepts a preallocated output array.
AFAPI af_err af_approx2_uniform_v2(af_array *out, const af_array in, const af_array pos0, const int interp_dim0, const double idx_start_dim0, const double idx_step_dim0, const af_array pos1, const int interp_dim1, const double idx_start_dim1, const double idx_step_dim1, const af_interp_type method, const float off_grid)
C Interface for the version of af_approx2_uniform that accepts a preallocated output array.
AFAPI af_err af_approx2_v2(af_array *out, const af_array in, const af_array pos0, const af_array pos1, const af_interp_type method, const float off_grid)
C Interface for the version of af_approx2 that accepts a preallocated output array.
AFAPI af_err af_approx2_uniform(af_array *out, const af_array in, const af_array pos0, const int interp_dim0, const double idx_start_dim0, const double idx_step_dim0, const af_array pos1, const int interp_dim1, const double idx_start_dim1, const double idx_step_dim1, const af_interp_type method, const float off_grid)
C Interface for signals interpolation on two dimensional signals along specified dimensions.
AFAPI af_err af_approx2(af_array *out, const af_array in, const af_array pos0, const af_array pos1, const af_interp_type method, const float off_grid)
C Interface for signals interpolation on two dimensional signals.
AFAPI array approx2(const array &in, const array &pos0, const array &pos1, const interpType method=AF_INTERP_LINEAR, const float off_grid=0.0f)
C++ Interface for data interpolation on two-dimensional signals.
AFAPI af_err af_convolve1(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode, af_conv_domain domain)
C Interface for convolution on one dimensional signals.
AFAPI array fftConvolve1(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT)
C++ Interface for convolution on 1D signals using FFT.
AFAPI af_err af_fft_convolve1(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode)
C Interface for convolution on 1D signals using FFT.
AFAPI array convolve1(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
C++ Interface for convolution on one dimensional signals.
AFAPI af_err af_convolve2_nn(af_array *out, const af_array signal, const af_array filter, const unsigned stride_dims, const dim_t *strides, const unsigned padding_dims, const dim_t *paddings, const unsigned dilation_dims, const dim_t *dilations)
C Interface for 2D convolution.
AFAPI array convolve2(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
C++ Interface for convolution on two dimensional signals.
AFAPI array fftConvolve2(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT)
C++ Interface for convolution on 2D signals using FFT.
AFAPI af_err af_convolve2(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode, af_conv_domain domain)
C Interface for convolution on two dimensional signals.
AFAPI af_err af_fft_convolve2(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode)
C Interface for convolution on 2D signals using FFT.
AFAPI array convolve2NN(const array &signal, const array &filter, const dim4 stride, const dim4 padding, const dim4 dilation)
C++ Interface for 2D convolution.
AFAPI array convolve3(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
C++ Interface for convolution on three dimensional signals.
AFAPI af_err af_fft_convolve3(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode)
C Interface for convolution on 3D signals using FFT.
AFAPI array fftConvolve3(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT)
C++ Interface for convolution on 3D signals using FFT.
AFAPI af_err af_convolve3(af_array *out, const af_array signal, const af_array filter, const af_conv_mode mode, af_conv_domain domain)
C Interface for convolution on three dimensional signals.
AFAPI af_err af_convolve2_sep(af_array *out, const af_array col_filter, const af_array row_filter, const af_array signal, const af_conv_mode mode)
C Interface for separable convolution on two dimensional signals.
AFAPI array convolve(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
C++ Interface for convolution any(one through three) dimensional signals.
AFAPI array fftConvolve(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT)
C++ Interface for FFT-based convolution any(one through three) dimensional signals.
AFAPI array fft2Norm(const array &in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0)
C++ Interface for fast fourier transform on two dimensional signals.
AFAPI array fft2(const array &in, const dim_t odim0=0, const dim_t odim1=0)
C++ Interface for fast fourier transform on two dimensional signals.
AFAPI void fft2InPlace(array &in, const double norm_factor=1.0)
C++ Interface for fast fourier transform on two dimensional signals.
AFAPI af_err af_fft2(af_array *out, const af_array in, const double norm_factor, const dim_t odim0, const dim_t odim1)
C Interface for fast fourier transform on two dimensional signals.
AFAPI af_err af_fft2_inplace(af_array in, const double norm_factor)
C Interface for fast fourier transform on two dimensional signals.
AFAPI af_err af_fft3_inplace(af_array in, const double norm_factor)
C Interface for fast fourier transform on three dimensional signals.
AFAPI af_err af_fft3(af_array *out, const af_array in, const double norm_factor, const dim_t odim0, const dim_t odim1, const dim_t odim2)
C Interface for fast fourier transform on three dimensional signals.
AFAPI array fft3Norm(const array &in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0)
C++ Interface for fast fourier transform on three dimensional signals.
AFAPI void fft3InPlace(array &in, const double norm_factor=1.0)
C++ Interface for fast fourier transform on three dimensional signals.
AFAPI array fft3(const array &in, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0)
C++ Interface for fast fourier transform on three dimensional signals.
AFAPI af_err af_fft_c2r(af_array *out, const af_array in, const double norm_factor, const bool is_odd)
C Interface for complex to real fast fourier transform for one dimensional signals.
AFAPI af_err af_fft3_c2r(af_array *out, const af_array in, const double norm_factor, const bool is_odd)
C Interface for complex to real fast fourier transform for three dimensional signals.
AFAPI af_err af_fft2_c2r(af_array *out, const af_array in, const double norm_factor, const bool is_odd)
C Interface for complex to real fast fourier transform for two dimensional signals.
array fftC2R(const array &in, bool is_odd=false, const double norm_factor=1.0)
C++ Interface for complex to real fast fourier transform.
array fftR2C(const array &in, const dim4 &dims, const double norm_factor=1.0)
C++ Interface for real to complex fast fourier transform for one dimensional signals.
AFAPI af_err af_fft_r2c(af_array *out, const af_array in, const double norm_factor, const dim_t pad0)
C Interface for real to complex fast fourier transform for one dimensional signals.
AFAPI af_err af_fft2_r2c(af_array *out, const af_array in, const double norm_factor, const dim_t pad0, const dim_t pad1)
C Interface for real to complex fast fourier transform for two dimensional signals.
AFAPI af_err af_fft3_r2c(af_array *out, const af_array in, const double norm_factor, const dim_t pad0, const dim_t pad1, const dim_t pad2)
C Interface for real to complex fast fourier transform for three dimensional signals.
AFAPI af_err af_set_fft_plan_cache_size(size_t cache_size)
C Interface for setting plan cache size.
AFAPI af_err af_fft(af_array *out, const af_array in, const double norm_factor, const dim_t odim0)
C Interface for fast fourier transform on one dimensional signals.
AFAPI array fft(const array &in, const dim_t odim0=0)
C++ Interface for fast fourier transform on one dimensional signals.
AFAPI array dft(const array &in, const double norm_factor, const dim4 outDims)
C++ Interface for fast fourier transform on any(1d, 2d, 3d) dimensional signals.
AFAPI af_err af_fft_inplace(af_array in, const double norm_factor)
C Interface for fast fourier transform on one dimensional signals.
AFAPI array idft(const array &in, const double norm_factor, const dim4 outDims)
C++ Interface for inverse fast fourier transform on any(1d, 2d, 3d) dimensional signals.
AFAPI void fftInPlace(array &in, const double norm_factor=1.0)
C++ Interface for fast fourier transform on one dimensional signals.
AFAPI array fftNorm(const array &in, const double norm_factor, const dim_t odim0=0)
C++ Interface for fast fourier transform on one dimensional signals.
AFAPI af_err af_fir(af_array *y, const af_array b, const af_array x)
C Interface for finite impulse response filter.
AFAPI array fir(const array &b, const array &x)
C++ Interface for finite impulse response filter.
AFAPI array ifft2Norm(const array &in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0)
C++ Interface for inverse fast fourier transform on two dimensional signals.
AFAPI af_err af_ifft2(af_array *out, const af_array in, const double norm_factor, const dim_t odim0, const dim_t odim1)
C Interface for inverse fast fourier transform on two dimensional signals.
AFAPI array ifft2(const array &in, const dim_t odim0=0, const dim_t odim1=0)
C++ Interface for inverse fast fourier transform on two dimensional signals.
AFAPI af_err af_ifft2_inplace(af_array in, const double norm_factor)
C Interface for fast fourier transform on two dimensional signals.
AFAPI void ifft2InPlace(array &in, const double norm_factor=1.0)
C++ Interface for fast fourier transform on two dimensional signals.
AFAPI array ifft3Norm(const array &in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0)
C++ Interface for inverse fast fourier transform on three dimensional signals.
AFAPI af_err af_ifft3_inplace(af_array in, const double norm_factor)
C Interface for fast fourier transform on three dimensional signals.
AFAPI void ifft3InPlace(array &in, const double norm_factor=1.0)
C++ Interface for fast fourier transform on three dimensional signals.
AFAPI array ifft3(const array &in, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0)
C++ Interface for inverse fast fourier transform on three dimensional signals.
AFAPI af_err af_ifft3(af_array *out, const af_array in, const double norm_factor, const dim_t odim0, const dim_t odim1, const dim_t odim2)
C Interface for inverse fast fourier transform on three dimensional signals.
AFAPI af_err af_ifft(af_array *out, const af_array in, const double norm_factor, const dim_t odim0)
C Interface for inverse fast fourier transform on one dimensional signals.
AFAPI af_err af_ifft_inplace(af_array in, const double norm_factor)
C Interface for fast fourier transform on one dimensional signals.
AFAPI array ifftNorm(const array &in, const double norm_factor, const dim_t odim0=0)
C++ Interface for inverse fast fourier transform on one dimensional signals.
AFAPI void ifftInPlace(array &in, const double norm_factor=1.0)
C++ Interface for fast fourier transform on one dimensional signals.
AFAPI array ifft(const array &in, const dim_t odim0=0)
C++ Interface for inverse fast fourier transform on one dimensional signals.
AFAPI array iir(const array &b, const array &a, const array &x)
C++ Interface for infinite impulse response filter.
AFAPI af_err af_iir(af_array *y, const af_array b, const af_array a, const af_array x)
C Interface for infinite impulse response filter.
AFAPI array filter(const array &image, const array &kernel)
Image Filtering.
AFAPI void setFFTPlanCacheSize(size_t cacheSize)
C++ Interface for setting plan cache size.