CUDA
C/C++    Fortran   

arrayfire.f95 File Reference

Data Types

type  array
 type(array) containing information about device More...
interface  assignment
interface  randu
 Random, uniformly distributed. More...
interface  randn
 Random, normally distributed. More...
interface  constant
 Constant value. More...
interface  identity
 Constant, identity. More...
interface  get
interface  set
interface  idx
interface  seq
interface  reform
 Reform an array. More...
interface  flat
 Flatten an array. More...
interface  tile
 Tile an array. More...
interface  join
 Join two arrays. More...
interface  transpose
 Matrix transpose. More...
interface  htranspose
 Matrix hermitian transpose. More...
interface  reorder
 Matrix reorder. More...
interface  sort
 Matrix sort. More...
interface  lower
 Matrix lower. More...
interface  upper
 Matrix upper. More...
interface  diag
 Matrix diag. More...
interface  real
 Matrix real. More...
interface  imag
 Matrix imag. More...
interface  complex
 Matrix complex. More...
interface  conjg
 Matrix complex conjugate. More...
interface  print
 Displays the contens of type array. More...
interface  device_info
 Displays system and arayfire information. More...
interface  device_sync
 Syncs all operations on the current GPU. More...
interface  device_eval
 Forces evaluation on the device. More...
interface  device_count
 Get the count of gpus available. More...
interface  device_set
 Switch to a particular gpu. More...
interface  device_get
 Get current gpu. More...
interface  timer_start
 Start timer. More...
interface  timer_stop
 Stop timer. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  operator
 Element wise addition. More...
interface  sin
 sine of an array More...
interface  cos
 co-sine of an array More...
interface  tan
 tangent of an array More...
interface  log
 logarithm of an array More...
interface  exp
 exponential of an array More...
interface  abs
 absolute of an array More...
interface  matmul
 Matrix multiply. More...
interface  lu
 LU decomposition Double-precision or complex input requires ArrayFire Pro. More...
interface  cholesky
 Cholesky decomposition Double-precision or complex input requires ArrayFire Pro. More...
interface  qr
 QR decomposition Double-precision or complex input requires ArrayFire Pro. More...
interface  eigen
 eigen value decomposition This function requires ArrayFire Pro. More...
interface  singular
 singular value decomposition This function requires ArrayFire Pro. More...
interface  solve
 Solve a system of equations Double-precision or complex input requires ArrayFire Pro. More...
interface  inverse
 inverse of a matrix This function requires ArrayFire Pro. More...
interface  matpow
 Power of a matrix Negative powers require ArrayFire Pro. More...
interface  norm
 Matrix norm. More...
interface  sum
 Sum of elements in an array, along a given dimension. More...
interface  mul
 Product of elements in an array, along a given dimension. More...
interface  min
 Minimum of elements in an array, along a given dimension. More...
interface  max
 Maximum of elements in an array, along a given dimension. More...
interface  anytrue
 Find if any element in an array is true, along a given dimension. More...
interface  alltrue
 Find if all elements in an array are true, along a given dimension. More...
interface  mean
 Mean of elements in an array, along a given dimension. More...
interface  std
 Standard deviation of elements in an array, along a given dimension. More...
interface  var
 Variance of elements in an array, along a given dimension. More...

Modules

module  arrayfire

Functions/Subroutines

integer elements (A)
subroutine init_1d (A, S)
subroutine init_2d (A, S)
subroutine init_3d (A, S)
subroutine init_4d (A, S)
subroutine init_eq (L, R)
type(array) idx_scalar (scalar)
type(array) idx_vector (indices)
type(array) arr_seq (first, last, step)
type(array) array_get (in, d1, d2, d3, d4)
subroutine array_set (lhs, rhs, d1, d2, d3, d4)
subroutine assign (L, R)
 Assigns data to array.
subroutine device1_s (A, B)
 Assigns data to array.
subroutine device1_d (A, B)
 Assigns data to array.
subroutine device1_c (A, B)
 Assigns data to array.
subroutine device1_z (A, B)
 Assigns data to array.
subroutine device2_s (A, B)
 Assigns data to array.
subroutine device2_d (A, B)
 Assigns data to array.
subroutine device2_c (A, B)
 Assigns data to array.
subroutine device2_z (A, B)
 Assigns data to array.
subroutine device3_s (A, B)
 Assigns data to array.
subroutine device3_d (A, B)
 Assigns data to array.
subroutine device3_c (A, B)
 Assigns data to array.
subroutine device3_z (A, B)
 Assigns data to array.
subroutine device4_s (A, B)
 Assigns data to array.
subroutine device4_d (A, B)
 Assigns data to array.
subroutine device4_c (A, B)
 Assigns data to array.
subroutine device4_z (A, B)
 Assigns data to array.
subroutine host1_s (R, A)
 Get the array data back to host.
subroutine host1_d (R, A)
 Get the array data back to host.
subroutine host1_c (R, A)
 Get the array data back to host.
subroutine host1_z (R, A)
 Get the array data back to host.
subroutine host2_s (R, A)
 Get the array data back to host.
subroutine host2_d (R, A)
 Get the array data back to host.
subroutine host2_c (R, A)
 Get the array data back to host.
subroutine host2_z (R, A)
 Get the array data back to host.
subroutine host3_s (R, A)
 Get the array data back to host.
subroutine host3_d (R, A)
 Get the array data back to host.
subroutine host3_c (R, A)
 Get the array data back to host.
subroutine host3_z (R, A)
 Get the array data back to host.
subroutine host4_s (R, A)
 Get the array data back to host.
subroutine host4_d (R, A)
 Get the array data back to host.
subroutine host4_c (R, A)
 Get the array data back to host.
subroutine host4_z (R, A)
 Get the array data back to host.
subroutine array_print (A, STR)
 Display array, optionally with a message.
type(array) array_reform (A, x1, x2, x3, x4)
 Reform an input array.
type(array) array_flat (A)
 Flat an input array.
type(array) array_tile (A, x1, x2, x3, x4)
 Tile an input array.
type(array) array_join (d, first, second)
 Join two arrays.
type(array) array_randu (x1, x2, x3, x4, ty)
 Generate uniformly distributed random matrix.
type(array) array_randn (x1, x2, x3, x4, ty)
 Generate normally distributed random matrix.
type(array) array_constant (val, x1, x2, x3, x4, ty)
 Generate an array of constant value.
type(array) array_identity (x1, x2, ty)
 Generate an identity matrix.
type(array) array_plus (A, B)
 Add two array matrices.
type(array) array_minus (A, B)
 Subtract two array matrices.
type(array) array_times (A, B)
 Multiply two array matrices (element wise)
type(array) array_div (A, B)
 Divide two array matrices (element wise)
type(array) array_pow (A, B)
 Element wise power with matrix exponent.
type(array) array_negate (A)
 Negate an array.
type(array) array_plus_d (A, B)
 Add scalar to array.
type(array) array_lplus_d (B, A)
 Add array to scalar.
type(array) array_plus_s (A, B)
 Add scalar to array.
type(array) array_lplus_s (B, A)
 Add array to scalar.
type(array) array_plus_i (A, B)
 Add scalar to array.
type(array) array_lplus_i (B, A)
 Add array to scalar.
type(array) array_minus_d (A, B)
 Add scalar to array.
type(array) array_lminus_d (B, A)
 Add array to scalar.
type(array) array_minus_s (A, B)
 Add scalar to array.
type(array) array_lminus_s (B, A)
 Add array to scalar.
type(array) array_minus_i (A, B)
 Add scalar to array.
type(array) array_lminus_i (B, A)
 Add array to scalar.
type(array) array_times_d (A, B)
 Add scalar to array.
type(array) array_ltimes_d (B, A)
 Add array to scalar.
type(array) array_times_s (A, B)
 Add scalar to array.
type(array) array_ltimes_s (B, A)
 Add array to scalar.
type(array) array_times_i (A, B)
 Add scalar to array.
type(array) array_ltimes_i (B, A)
 Add array to scalar.
type(array) array_div_d (A, B)
 Add scalar to array.
type(array) array_ldiv_d (B, A)
 Add array to scalar.
type(array) array_div_s (A, B)
 Add scalar to array.
type(array) array_ldiv_s (B, A)
 Add array to scalar.
type(array) array_div_i (A, B)
 Add scalar to array.
type(array) array_ldiv_i (B, A)
 Add array to scalar.
type(array) array_pow_d (A, B)
 Element wise power with scalar exponent.
type(array) array_pow_s (A, B)
 Element wise power with scalar exponent.
type(array) array_pow_i (A, B)
 Element wise power with scalar exponent.
type(array) array_gt (A, B)
type(array) array_ge (A, B)
type(array) array_lt (A, B)
type(array) array_le (A, B)
type(array) array_eq (A, B)
type(array) array_ne (A, B)
type(array) array_gt_d (A, B)
type(array) array_lgt_d (B, A)
type(array) array_gt_s (A, B)
type(array) array_lgt_s (B, A)
type(array) array_gt_i (A, B)
type(array) array_lgt_i (B, A)
type(array) array_lt_d (A, B)
type(array) array_llt_d (B, A)
type(array) array_lt_s (A, B)
type(array) array_llt_s (B, A)
type(array) array_lt_i (A, B)
type(array) array_llt_i (B, A)
type(array) array_ge_d (A, B)
type(array) array_lge_d (B, A)
type(array) array_ge_s (A, B)
type(array) array_lge_s (B, A)
type(array) array_ge_i (A, B)
type(array) array_lge_i (B, A)
type(array) array_le_d (A, B)
type(array) array_lle_d (B, A)
type(array) array_le_s (A, B)
type(array) array_lle_s (B, A)
type(array) array_le_i (A, B)
type(array) array_lle_i (B, A)
type(array) array_eq_d (A, B)
type(array) array_leq_d (B, A)
type(array) array_eq_s (A, B)
type(array) array_leq_s (B, A)
type(array) array_eq_i (A, B)
type(array) array_leq_i (B, A)
type(array) array_ne_d (A, B)
type(array) array_lne_d (B, A)
type(array) array_ne_s (A, B)
type(array) array_lne_s (B, A)
type(array) array_ne_i (A, B)
type(array) array_lne_i (B, A)
type(array) array_and (A, B)
 and on two array matrices
type(array) array_or (A, B)
 or on two array matrices
type(array) array_not (A)
 Not an array.
type(array) array_sin (A)
 sin of array
type(array) array_cos (A)
 cos of array
type(array) array_tan (A)
 tan of array
type(array) array_log (A)
 log of array
type(array) array_abs (A)
 absolute of array
type(array) array_exp (A)
 exponential of array
type(array) array_matmul (A, B)
 Multiply two array matrices.
type(array) array_matpow_i (A, p)
 Matrix power.
type(array) array_matpow_s (A, p)
 Matrix power.
type(array) array_matpow_d (A, p)
 Matrix power.
type(array) array_transpose (A)
 Transpose an array.
type(array) array_htranspose (A)
 Htranspose an array.
type(array) array_reorder (A, d1, d2, d3, d4)
 Reorder an array.
type(array) array_sort (A)
 Sort an array.
type(array) array_lower (A)
 Lower triangular matrix of a matrix.
type(array) array_upper (A)
 Upper triangular matrix of a matrix.
type(array) array_diag (A)
 Diag triangular matrix of a matrix.
type(array) array_real (A)
 Real triangular matrix of a matrix.
type(array) array_imag (A)
 Imag triangular matrix of a matrix.
type(array) array_complex (A)
 Create complex matrix from input matrix.
type(array) array_complex2 (Re, Im)
 Create complex matrix from two (real, imaginary) matrices.
type(array) array_conjg (A)
 Create conjugate matrix from input matrix.
double precision array_norm (A)
 Norm of an array.
double precision array_pnorm (A, p)
 Norm of an array.
subroutine array_lu (L, U, p, A)
 LU decomposition of array.
subroutine array_lu_inplace (A)
 LU decomposition of array.
subroutine array_qr (Q, R, A)
 QR decomposition of array.
subroutine array_eigen (values, vectors, A)
 Eigen value decomposition of array.
subroutine array_singular (S, U, V, A)
 Singular value decomposition of array.
subroutine array_cholesky (R, A)
 cholesky decomposition of array
subroutine array_cholesky_inplace (A)
 cholesky decomposition of array
subroutine array_solve (X, A, B)
 Solve a system of equations.
type(array) array_inverse (A)
 Inverse an array.
type(array) array_sum (A, d)
 Summation of elements in a matrix.
type(array) array_mul (A, d)
 Product of elements in a matrix.
type(array) array_min (A, d)
 Minimum of elements in a matrix.
type(array) array_max (A, d)
 Maximum of elements in a matrix.
type(array) array_anytrue (A, d)
 Any of elements in a matrix.
type(array) array_alltrue (A, d)
 All of elements in a matrix.
type(array) array_mean (A, d)
 Mean of elements in a matrix.
type(array) array_std (A, d)
 Standard deviation of elements in a matrix.
type(array) array_var (A, d)
 Variance of elements in a matrix.
subroutine device_info_ ()
 Show device info.
subroutine device_eval_ (A)
 Evaluate an expression on device.
subroutine device_sync_ ()
 Synchronize on the device.
integer device_get_ ()
 Get the device number.
subroutine device_set_ (R)
 Set a particular device.
integer device_count_ ()
 Show device count.
subroutine timer_start_ ()
 Show device start.
double precision timer_stop_ ()
 Show device stop.

Variables

integer err
 Contains the last known error in the arrayfire module.
integer f32 = 1
 Single precision, real type.
integer c32 = 2
 Single precision, complex type.
integer f64 = 3
 Double precision, real type.
integer c64 = 4
 Double precision, complex type.
integer b8 = 5
 Boolean type.