Inverse of a given matrix. More...

Modules

 af_norm
 Calculate the norm of a vector.
 

Device pointer interface: Matrix inversion

See also Linear Algebra

Parameters
[out]d_outThe inverted matrix of d_in.
[in]nWidth of the input matrix.
[in,out]d_AThe input matrix. Inversion done in-place if d_out is NULL
[in]batchNumber of tiles of input being handled.
afError af_inverse_S (float *out, unsigned n, float *d_in, unsigned batch)
 Inversion of single precision matrix. DLA license required. More...
 
afError af_inverse_C (cfloat *out, unsigned n, cfloat *d_in, unsigned batch)
 Inversion of single precision complex matrix. DLA license required. More...
 
afError af_inverse_D (double *out, unsigned n, double *d_in, unsigned batch)
 Inversion of double precision matrix. DLA license required. More...
 
afError af_inverse_Z (cdouble *out, unsigned n, cdouble *d_in, unsigned batch)
 Inversion of double precision complex matrix. DLA license required. More...
 

Device pointer interface: Matrix determinant

Parameters
[out]resThe determinant of the input matrix d_X
[in]nWidth of the input matrix.
[in,out]d_XThe input matrix.
[in]inplaceInput data in d_X is destroyed if true.
[in]batchNumber of tiles of input being handled.
afError af_det_S (float *res, unsigned n, float *d_X, bool inplace, unsigned batch)
 Determinant of single precision matrix. DLA license not required. More...
 
afError af_det_C (cfloat *res, unsigned n, cfloat *d_X, bool inplace, unsigned batch)
 Determinant of single precision complex matrix. DLA license required. More...
 
afError af_det_D (double *res, unsigned n, double *d_X, bool inplace, unsigned batch)
 Determinant of double precision matrix. DLA license required. More...
 
afError af_det_Z (cdouble *res, unsigned n, cdouble *d_X, bool inplace, unsigned batch)
 Determinant of double precision complex matrix. DLA license required. More...
 

Device pointer interface: Matrix power

See also Linear Algebra

Parameters
[out]d_outd_out is the output containing pow(d_in, power)
[in]nWidth of the input matrix.
[in]d_inThe input matrix.
[in]powerThe exponent the input has to be raised to.
[in]batchNumber of tiles of input being handled.
[in]is_cplxTo signal if the output is real or complex
afError af_matrixPower_S (void **d_out, unsigned n, const float *d_in, float power, unsigned batch, bool *is_cplx)
 Matrix power for single precision matrix. More...
 
afError af_matrixPower_C (void **d_out, unsigned n, const cfloat *d_in, float power, unsigned batch, bool *is_cplx)
 Matrix power for single precision, complex matrix. DLA license required. More...
 
afError af_matrixPower_D (void **d_out, unsigned n, const double *d_in, double power, unsigned batch, bool *is_cplx)
 Matrix power for double precision matrix. DLA license required. More...
 
afError af_matrixPower_Z (void **d_out, unsigned n, const cdouble *d_in, double power, unsigned batch, bool *is_cplx)
 Matrix power for double precision, complex matrix. DLA license required. More...
 

Detailed Description

Inverse of a given matrix.

Integer powers of input matrix.

Determinant of an input matrix.

Requires ArrayFire Pro.

Double-precision or complex input requires ArrayFire Pro.

Double-precision or complex inputs require ArrayFire Pro.

Function Documentation

afError af_inverse_S ( float *  out,
unsigned  n,
float *  d_in,
unsigned  batch 
)

Inversion of single precision matrix. DLA license required.

afError af_inverse_C ( cfloat out,
unsigned  n,
cfloat d_in,
unsigned  batch 
)

Inversion of single precision complex matrix. DLA license required.

afError af_inverse_D ( double *  out,
unsigned  n,
double *  d_in,
unsigned  batch 
)

Inversion of double precision matrix. DLA license required.

afError af_inverse_Z ( cdouble out,
unsigned  n,
cdouble d_in,
unsigned  batch 
)

Inversion of double precision complex matrix. DLA license required.

afError af_det_S ( float *  res,
unsigned  n,
float *  d_X,
bool  inplace,
unsigned  batch 
)

Determinant of single precision matrix. DLA license not required.

afError af_det_C ( cfloat res,
unsigned  n,
cfloat d_X,
bool  inplace,
unsigned  batch 
)

Determinant of single precision complex matrix. DLA license required.

afError af_det_D ( double *  res,
unsigned  n,
double *  d_X,
bool  inplace,
unsigned  batch 
)

Determinant of double precision matrix. DLA license required.

afError af_det_Z ( cdouble res,
unsigned  n,
cdouble d_X,
bool  inplace,
unsigned  batch 
)

Determinant of double precision complex matrix. DLA license required.

afError af_matrixPower_S ( void **  d_out,
unsigned  n,
const float *  d_in,
float  power,
unsigned  batch,
bool *  is_cplx 
)

Matrix power for single precision matrix.

DLA license not required for positive powers.

afError af_matrixPower_C ( void **  d_out,
unsigned  n,
const cfloat d_in,
float  power,
unsigned  batch,
bool *  is_cplx 
)

Matrix power for single precision, complex matrix. DLA license required.

afError af_matrixPower_D ( void **  d_out,
unsigned  n,
const double *  d_in,
double  power,
unsigned  batch,
bool *  is_cplx 
)

Matrix power for double precision matrix. DLA license required.

afError af_matrixPower_Z ( void **  d_out,
unsigned  n,
const cdouble d_in,
double  power,
unsigned  batch,
bool *  is_cplx 
)

Matrix power for double precision, complex matrix. DLA license required.