Documentation
ArrayFire Functions

## Modules

sin
Perform a element-wise sin.

sinh
Performs an element-wise sinh.

asin
Performs an element-wise asin.

asinh
Performs an element-wise asinh.

cos
Perform a element-wise cos.

cosh
Performs an element-wise cosh.

acos
Performs an element-wise acos.

acosh
Performs an element-wise acosh.

tan
Perform a element-wise tan.

tanh
Performs an element-wise tanh.

atan
Performs an element-wise atan.

atanh
Performs an element-wise atanh.

isFinite
Checks if values are finite.

isInf
Checks if values are infinity.

isNaN
Checks if values are not a number.

sign
Returns one(1) if positive negative one(-1) if negative.

sqrt
Computes the sqare root of the elements.

root
Computes the n-th root of the elements.

pow2
Raises each element to a power of two(2)

ceil
Rounds each value up to the next integer.

floor
Rounds each value down to the next integer.

trunc
Rounds to the nearest integer (towards zero).

factorial
Compute factorial.

log
Computes logarithm of the elements.

log2
Compute logarithm to the base two(2).

log10
Compute logarithm to the base ten(10).

log1p
Compute log(1+x) accurately for small values.

exp
Computes the exponential for each element.

expm1
Computes the exponential minus one(1) accurately for small values.

gamma
Computes the gamma function.

gammaln
Computes the logarithm of a gamma function.

epsilon
Computes the epsilon.

erf
Computes the Gaussian error function.

erfc
Computes the complex Gaussian error function.

erfinv
Computes the inverse Gaussian error function.

erfcinv
Computes the inverse complex Gaussian error function.

abs
Computes the absolute value.

arg
Computes the phase angle in radians.

conjg
Computes the complex conjugate.

real
Extracts the real values.

imag
Extracts the imaginary values.

complex
Convert a real array into a complex array.

atan2
Computes the arc tangent of two variables.

hypot
Computes the Euclidean distance function.

rem
Computes the remainder.

mod
Computes the mod.

lower
Extracts the lower triangular matrix.

upper
Extracts the upper triangular matrix.

diag
Extracts the diagonal of a matrix.

join
Combines array along a dimension.

flip
Flips the values of an array.

sync
Block until all device operations have finished.

norm
Calculates the norm of a vector.

dot
Calculate the dot product of a vector.

matmul
Matrix multiplication using array.

sum
Sum elements in an array.

mul
Compute the product of elements of an array.

min
Compute the minimum value of an array.

max
Compute the maximum value of an array.

minmax
Computes the minimum and the maximum value of an array.

alltrue
Tests if all of the elements of an array are true.

anytrue
Tests if any of the elements are true.

where
Gets the indicies of non-zero values.

count
Gets the number of non-zero elements.

segsum
Calculates the Segmented Sum of a set of elements.

accum
Accumulated Sum.

setunique
Gets the unique elements of a set.

setunion
Creates a union of two sets.

setintersect
Gets the intersect of two sets.

mean
Gets the mean of a vector or a matrix.

var
Gets the variance along a dimension.

cov
Gets the covariance of row observations.

stdev
Gets the standard deviation.

median
Calculates the median.

corrcoef
Calculates the Correlation Coefficient.

gfor
Parallel loop iterations: gfor.

resize
Enlarge or shrink an image.

rotate
Rotate an image by a given angle.

gaussiankernel
Create a gaussian kernel.

filter
Apply an arbitrary filter to an image.

medfilt
Apply a median filter to an image.

minfilt
Apply a min filter to an image.

maxfilt
Apply a max filter to an image.

erode
Erode an image by a given mask.

dilate
Dilate an image.

bilateral
Apply a bilateral filter to an image.

meanshift
Apply a meanshift filter to an image.

colorspace
Change the colorspace on an image.

histogram
Compute a histogram for an image or perform histogram equalization.

regions
Label the connected components in a binary image.

areas
Calculate the area of each numbered component in a label matrix.

centroids
Compute the centroid of each numbered component in a label matrix.

diff
Compute the difference along a dimension.

Compute the gradient of a matrix.

kron
Calculate the Kronecker product of two matrices.

bessel
Compute the Bessel function for each element of an array.

moddim
Modify the dimensions of an array object.

tile
Tile (repeat) an array along a dimension.

flat
Flatten an array into column vector.

shift
Shift the values of an array around dimension (wrap around).

reorder
Reorder dimensions of array.

sort
Sort an array or matrix along a dimension.

transpose
Transpose a matrix.

fft
Apply the Fast Fourier Transform (FFT)

fir
Apply a Finite Impulse Response (FIR) filter.

iir
Apply an Infinite Impulse Response (IIR) Filter.

convolve
Performs a convolution.

approx
Interpolation in one or two dimensions.