DO MORE. CODE LESS. Free software for GPU computing on AMD, Intel, and NVIDIA.
Classes | Typedefs | Enumerations | Functions
af Namespace Reference

Classes

class  array
struct  timer

Typedefs

typedef cl_float2 clFloatComplex
typedef struct af::timer timer

Enumerations

enum  af_type { AF_SINGLE_REAL, AF_SINGLE_CPLX }
enum  af_mode { af_valid = -1, af_same, af_full }
 Filtering modes. More...

Functions

array setdims (const array &in, unsigned R, unsigned C)
void print_ (const array &in)
 Print array contents to screen.
std::ostream & operator<< (std::ostream &out, const array in)
 Print to ostream.
array multiply (const array &A, const array &B)
 Matrix multiplication.
array dot (const array &A, const array &B)
 Dot product (k is 1)
array fft1D (const array &in)
 fourier transform along columns
array ifft1D (const array &in)
 inverse fourier transform along columns
array fft2D (const array &in)
 fourier transform of matrices / images
array ifft2D (const array &in)
 inverse fourier transform of matrices / images
array convolve (const array &input, const array &filter, af_mode mode=af_full)
 Apply convolution filter.
array real (const array &in)
 Get the real part.
array imag (const array &in)
 Get the imaginary part.
array complex (const array &real, const array &imag)
 Construct complex array from real and imaginary parts.
array complex (const array &real)
 Construct complex array from real part.
array conjugate (const array &a)
 Get the conjugate of the complex array.
void info ()
 Display the devices available for computation.
void device (int dev)
 Select a particular device.
int device (void)
 Returns the number of devices available.
void sync ()
 Synchronize the current device.
array tile (array &in, int M, int N=1)
 Tile the elements of the array.
array sin (const array &in)
array cos (const array &in)
array tan (const array &in)
array asin (const array &in)
array acos (const array &in)
array atan (const array &in)
array erf (const array &in)
array exp (const array &in)
array sqrt (const array &in)
array log (const array &in)
double timeit (void(*fn)())

Typedef Documentation

typedef cl_float2 af::clFloatComplex

Single precision complex datatype

typedef struct af::timer af::timer

Internal timer object


Enumeration Type Documentation

array_fire_mini_logo_icon.png
array types
Enumerator:
AF_SINGLE_REAL 
AF_SINGLE_CPLX 

Single precision real.

Single precision complex


Function Documentation

double af::timeit ( void(*)()  fn)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines