ArrayFire is a high performance software library for parallel computing with an easy-to-use API. ArrayFire abstracts away much of the details of programming parallel architectures by providing a high-level container object, the Array, that represents data stored on a CPU, GPU, FPGA, or other type of accelerator. This abstraction permits developers to write massively parallel applications in a high-level language where they need not be concerned about low-level optimizations that are frequently required to achieve high throughput on most parallel architectures. This crate provides Rust bindings for the ArrayFire library. Given below table shows the rust bindings compatability with ArrayFire upstream. If you find any bugs, please report them on github.
arrayfire-rust crate ArrayFire Upstream M.m.p1 M.m.p2Only, Major(M) & Minor(m) version numbers need to match. p1 and p2 are patch/fix updates for arrayfire-rust
& ArrayFire
respectively, and they don't need to match.
Please go through our tutorials book for more explanations on how to use ArrayFire to speedup your code.
HANDLE_ERRORDefault error handler for error code returned by ArrayFire FFI calls
absComputes absolute value
accumPerform exclusive sum of elements along a given dimension
acosCompute acos
acoshCompute acosh
addAddition of two Arrays
all_trueFind if all of the values along a given dimension in the Array are true
all_true_allFind if all values of Array are non-zero
all_true_by_keyKey based AND of elements along a given dimension
alloc_hostAllocates space using Arrayfire allocator in host memory
alloc_pinned⚠Allocate non-pageable memory on HOST memory
andElementwise logical and operation of two Arrays
anisotropic_diffusionAnisotropic smoothing filter
any_trueFind if any of the values along a given dimension in the Array are true
any_true_allFind if any value of Array is non-zero
any_true_by_keyKey based OR of elements along a given dimension
approx1Perform signal interpolation for 1d signals
approx1_uniformPerform signal interpolation for 1d signals along specified dimension
approx1_uniform_v2Same as approx1_uniform but uses existing Array as output
approx1_v2Same as approx1 but uses existing Array as output
approx2Perform signal interpolation for 2d signals
approx2_uniformPerform signal interpolation for 2d signals along a specified dimension
approx2_uniform_v2Same as approx2_uniform but uses existing Array as output
approx2_v2Same as approx2 but uses existing Array as output
argComputes phase value
asinCompute asin
asinhCompute asinh
assign_genAssign an Array to another after indexing it using any combination of Array's and Sequence's
assign_seqAssign(copy) content of an Array to another Array indexed by Sequences
atanCompute atan
atan2Calculate atan2 of two Arrays
atanhCompute atanh
bilateralBilateral Filter.
bitandElementwise AND(bit) operation of two Arrays
bitnotPerform bitwise complement on all values of Array
bitorElementwise OR(bit) operation of two Arrays
bitxorElementwise XOR(bit) operation of two Arrays
cannyCanny edge detection operator
cbrtCompute the cube root
ceilCeil the values in an Array
choleskyPerform Cholesky decomposition
cholesky_inplacePerform inplace Cholesky decomposition
clampClamp the values of Array
colExtract col_num
col from input
Array
Color space conversion
colsGet all cols from first
to last
in the input
Array
Segment image based on similar pixel characteristics
conjgCompute the complex conjugate
constantCreate an Array with constant value
convolve11d convolution
convolve22d convolution
convolve2_gradient_nnBackward pass gradient of 2D convolution
convolve2_nnConvolution Integral for two dimensional data
convolve2_sepSeparable convolution for 2d signals
convolve33d convolution
corrcoefCompute correlation coefficient
cosCompute cos
coshCompute cosh
countCount number of non-zero elements along a given dimension
count_allCount number of non-zero values in the Array
count_by_keyFind total count of elements with similar keys along a given dimension
cov DeprecatedCompute covariance of two Arrays
cov_v2Compute covariance of two Arrays
cplxCreate a complex Array from real Array
cplx2Create complex array from two Arrays
detFind the determinant of the matrix
device_countGet total number of available devices
device_gcCall the garbage collection routine
device_infoGets the information about device and platform as strings.
device_mem_infoGet memory information from the memory manager for the current active device
diag_createCreate a diagonal matrix
diag_extractExtract diagonal from a given Matrix
diff1Calculate first order numerical difference along a given dimension
diff2Calculate second order numerical difference along a given dimension
dilateDilate an Image
dilate3Dilate a Volume
divDivision of two Arrays
dogDifference of Gaussians.
dotCalculate the dot product of vectors.
eqPerform equals
comparison operation
Compute error function value
erfcCompute the complementary error function value
erodeErode an Image
erode3Erode a Volume
eval_multipleevaluate multiple arrays
expCompute e raised to the power of value
expm1Compute e raised to the power of value -1
factorialCompute the factorial
fastFast feature detector
fftFast fourier transform for 1d signals
fft2Fast fourier transform for 2d signals
fft2_c2r2d Complex to Real fast fourier transform
fft2_inplaceIn place 2d dimensional Fast fourier transform
fft2_r2c2d Real to Complex fast fourier transform
fft3Fast fourier transform for 3d signals
fft3_c2r3d Complex to Real fast fourier transform
fft3_inplaceIn place 3d dimensional Fast fourier transform
fft3_r2c3d Real to Complex fast fourier transform
fft_c2r1d Complex to Real fast fourier transform
fft_convolve11d convolution using fast-fourier transform
fft_convolve22d convolution using fast-fourier transform
fft_convolve33d convolution using fast-fourier transform
fft_inplaceIn place 1d dimensional Fast fourier transform
fft_r2c1d Real to Complex fast fourier transform
firFinite impulse filter
flatFlatten the multidimensional Array to an 1D Array
flipFlip the Array
floorFloor the values in an Array
free_hostFrees memory allocated by Arrayfire allocator in host memory
free_pinned⚠Free the pointer returned by alloc_pinned
gaussian_kernelCreates a Gaussian Kernel.
gePerform greater than equals
comparison operation
BLAS general matrix multiply (GEMM) of two Array objects
get_active_backendGet current active backend
get_available_backendsGet the available backends
get_backend_countGet the available backend count
get_default_random_engineGet default random engine
get_deviceGet the current active device id
get_last_errorFetch last error description as String
get_mem_step_sizeGet the minimum memory chunk size
get_revisionGet ArrayFire Revision (commit) information of the library.
get_seedGet the seed of random number generator
get_sizeGet size, in bytes, of the arrayfire native type
get_versionGet ArrayFire Version Number
gradientCalculate the gradients
gray2rgbGrayscale to Color(RGB) conversion
gtPerform greater than
comparison operation
Hamming feature matcher
handle_error_generalDefault error handling callback provided by ArrayFire crate
harrisHarris corner detector.
hist_equalHistogram Equalization
histogramCompute Histogram of an Array
homographyHomography estimation
hsv2rgbHSV to RGB color space conversion
hypotCompute length of hypotenuse of two Arrays
identityCreate an identity array with 1's in diagonal
ifftInverse fast fourier transform for 1d signals
ifft2Inverse fast fourier transform for 2d signals
ifft2_inplaceIn place 2d dimensional inverse fast fourier transform
ifft3Inverse fast fourier transform for 3d signals
ifft3_inplaceIn place 3d dimensional inverse fast fourier transform
ifft_inplaceIn place 1d dimensional inverse fast fourier transform
iirInfinite impulse response filter
imagExtract imaginary values from a complex Array
imaxFind maximum value along given dimension and their corresponding indices
imax_allFind maximum and it's index in the whole Array
iminFind minimum value along given dimension and their corresponding indices
imin_allFind minimum and it's index in the whole Array
indexIndexes the input
Array using seqs
Sequences
Index an Array using any combination of Array's and Sequence's
infoPrint library meta-info
info_stringReturn library meta-info as String
Initialize ArrayFire library
inverseCompute inverse of a matrix
inverse_deconvInverse deconvolution
iotaCreate a range of values
is_double_availableCheck if a device has double support
is_eval_manualGet eval flag value
is_half_availableCheck if a device has half support
is_imageio_availableFunction to check if Image I/O is available
is_lapack_availableFunction to check if lapack support is available
isinfCheck if values are infinity
isnanCheck if values are NaN
iszeroCheck if values are zero
iterative_deconvIterative Deconvolution
joinJoin two arrays
join_manyJoin multiple arrays
lePerform less than equals
comparison operation
Compute the logarithm of absolute values of gamma function
load_imageLoad Image into Array
load_image_nativeLoad Image into Array in it's native type
locateLocate the indices of non-zero elements.
logCompute the natural logarithm
log1pCompute the logarithm of input Array + 1
log2Compute logarithm base 2
log10Compute logarithm base 10
lookupLookup(hash) an Array using another Array
lowerCreate lower triangular matrix
ltPerform less than
comparison operation
Perform LU decomposition
lu_inplacePerform inplace LU decomposition
match_templateImage matching
matmulMatrix multiple of two Arrays
maxFind maximum among elements of given dimension
max_allFind maximum among all values of the Array
max_by_keyFind maximum among values of similar keys along a given dimension
max_raggedMax reduction along given axis as per ragged lengths provided
maxfiltBox filter with maximum as box operation
maxofElementwise maximum operation of two Arrays
meanMean along specified dimension
mean_allCompute mean of all data
mean_all_weightedCompute weighted mean of all data
mean_shiftMeanshift Filter.
mean_weightedWeighted mean along specified dimension
meanvarCalculate mean and variance in single API call
medfiltMedian filter
medfilt1One dimensional median filter on image
medianFind the median along a given dimension
median_allCompute median of all data
minFind minimum among elements of given dimension
min_allFind minimum among all values of the Array
min_by_keyFind minimum among values of similar keys along a given dimension
minfiltBox filter with minimum as box operation
minofElementwise minimum operation of two Arrays
moddimsChange the shape of the Array
moduloCompute modulo of two Arrays
momentsFind Image moments
moments_allFind Image moment for whole image
mulMultiplication of two Arrays
nearest_neighbourNearest Neighbour.
neqElementwise not equals comparison of two Arrays
normFind the norm of a matrix
orElementwise logical or operation of two Arrays
orbORB feature descriptor
padPad input Array along borders
pinversePsuedo Inverse of Matrix
powComputer power
pow2Compute two raised to the power of value
printPrint data in the Array
print_genGeneralized Array print function
print_mem_infoPrint buffer details from the ArrayFire device manager
productCompute product of elements along a given dimension
product_allProduct of all values of the Array
product_by_keyFind product of all values with similar keys along a given dimension
product_by_key_nanCompute product of all values with similar keys along a given dimension
product_nanProduct of elements along specific dimension using user specified value instead of NAN
values
Product of all values using user provided value for NAN
Perform QR decomposition
qr_inplacePerform inplace QR decomposition
randnCreate random numbers from normal distribution
random_normalGenerate array of normal numbers using a random engine
random_uniformGenerate array of uniform numbers using a random engine
randuCreate random numbers from uniform distribution
rangeCreate a Range of values
rankFind rank of a matrix
realExtract real values from a complex Array
regionsFind blobs in given image.
register_error_handlerRegister user provided error handler
remCompute remainder from two Arrays
reorder DeprecatedReorder the array in specified order
reorder_v2Reorder the array according to the new specified axes
replaceInplace replace in Array based on a condition
replace_scalarInplace replace in Array based on a condition
resizeResize an Image
rgb2grayColor(RGB) to Grayscale conversion
rgb2hsvRGB to HSV color space conversion
rgb2ycbcrRGB to YCbCr colorspace converter.
rootCompute root
rotateRotate an Image
roundRound the values in an Array
rowExtract row_num
row from input
Array
Get an Array with all rows from first
to last
in the input
Array
Compute the reciprocal square root
satSummed area table of an Image
save_imageSave an Array to an image file
save_image_nativeSave an Array without modifications to an image file
scaleScale an Image
scanGeneralized scan
scan_by_keyGeneralized scan by key
selectElement wise conditional operator for Arrays
selectlElement wise conditional operator for Arrays
selectrElement wise conditional operator for Arrays
set_backendToggle backends between cuda, opencl or cpu
set_colSet col_num
^th col in inout
Array to a new Array new_col
Set cols from first
to last
in inout
Array with cols from Array new_cols
Sets the cuBLAS math mode for the internal handle.
set_default_random_engine_typeSet the random engine type for default random number generator
set_deviceSet active device
set_fft_plan_cache_sizeSet fft plan cache size
set_intersectFind intersection of two sets
set_manual_evalSet eval flag value
set_mem_step_sizeSet the minimum memory chunk size
set_rowSet row_num
^th row in inout
Array to a new Array new_row
Set rows from first
to last
in inout
Array with rows from Array new_rows
Set seed for random number generation
set_sliceSet slice slice_num
in inout
Array to a new Array new_slice
Set first
to last
slices of inout
Array to a new Array new_slices
Find union of two sets
set_uniqueFind unique values from a Set
shift"Circular shift of values along specified dimension
shiftlCompute left shift
shiftrCompute right shift
sigmoidCompute sigmoid function
signComputes the sign of input Array values
sinCompute sin
sinhCompute sinh
skewSkew an image
sliceGet slice_num
^th slice from input
Array
Get slices from first
to last
in input
Array
Sobel Operator
solveSolve a system of equations
solve_luSolve a system of equations
sortSort the values in input Arrays
sort_by_keySort the values in input Arrays
sort_indexSort the values in input Arrays
sparseCreate sprase matrix from arrays
sparse_convert_toConvert between sparse formats
sparse_from_denseConvert dense array to sparse array
sparse_from_hostCreate sprase matrix from data on host memory
sparse_get_col_indicesGet cololumn indices Array
sparse_get_formatGet sparse format
sparse_get_infoGet sparse Array information
sparse_get_nnzGet number of non-zero elements in sparse array
sparse_get_row_indicesGet row indices Array
sparse_get_valuesGet values of sparse Array
sparse_to_denseConvert sparse array to dense array
sqrtCompute the square root
stdev DeprecatedStandard deviation along specified axis
stdev_allCompute standard deviation of all data
stdev_all_v2Compute standard deviation of all data
stdev_v2Standard deviation along given axis
subSubtraction of two Arrays
sumSum elements along a given dimension
sum_allSum all values of the Array
sum_by_keyFind sum of all values with similar keys along a given dimension
sum_by_key_nanCompute sum of all values with similar keys along a given dimension
sum_nanSum along specific dimension using user specified value instead of NAN
values
Sum all values using user provided value for NAN
SUSAN corner detector.
svdPerform Singular Value Decomposition
svd_inplacePerform Singular Value Decomposition inplace
syncSync all operations on given device
tanCompute tan
tanhCompute tanh
tgammaCompute gamma function
tileTile the input array along specified dimension
topkFind top k elements along a given dimension
transformTransform(Affine) an Image
transform_coordsTransform input coordinates
translateTranslate an Image
transposeTranspose of a matrix.
transpose_inplaceInplace transpose of a matrix.
truncTruncate the values in an Array
unwrapGenerate an array with image windows as columns
upperCreate upper triangular matrix
var DeprecatedCompute Variance along a specific dimension
var_all DeprecatedCompute Variance of all elements
var_all_v2Compute Variance of all elements
var_all_weightedCompute weighted variance of all data
var_v2Compute Variance along a specific dimension
var_weightedWeight variance along specified dimension
wrapConverts unwrapped image to an image
ycbcr2rgbYCbCr to RGB colorspace converter.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4