Do more. Code less. Free software for GPU computing.
<scroll to top>

Power

Matrix Operations

Integer powers of input matrix. More...

Device pointer interface: Matrix power

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.
afError af_matrixPower_C (void **d_out, unsigned n, const cuComplex *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 cuDoubleComplex *d_in, double power, unsigned batch, bool *is_cplx)
 Matrix power for double precision, complex matrix. DLA license required.

Detailed Description

Integer powers of input matrix.

Double-precision or complex inputs require ArrayFire Pro.


Function Documentation

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 cuComplex *  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 cuDoubleComplex *  d_in,
double  power,
unsigned  batch,
bool *  is_cplx 
)

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines