Functions | |
| template<typename ty > | |
| ty | norm (const array &in, float p=af::nan) |
| Matrix or vector norm. | |
| array | inv (const array &in) |
| Matrix inversion. | |
| array | pinv (const array &in) |
| Pseudo inverse. | |
| array | mpow (const array &base, double exponent) |
| Matrix power. | |
| unsigned | rank (const array &in, double tolerance=1e-5) |
| Rank of matrix. | |
| template<typename T > | |
| T | det (const array &in) |
| Matrix determinant. | |
| ty af::norm | ( | const array & | in, |
| float | p = af::nan |
||
| ) |
Matrix or vector norm.
Some options require ArrayFire Pro.
| [in] | in | |
| [in] | p | type of norm: |
| array af::inv | ( | const array & | in | ) |
Matrix inversion.
Double-precision or complex input requires ArrayFire Pro.
| [in] | in | square system matrix |
| array af::pinv | ( | const array & | in | ) |
Double-precision or complex input requires ArrayFire Pro.
| [in] | in | system matrix (possibly nonsquare) |
| array af::mpow | ( | const array & | base, |
| double | exponent | ||
| ) |
Matrix power.
Double-precision or complex input requires ArrayFire Pro.
| [in] | base | square |
| [in] | exponent |
base raised to exponent | unsigned af::rank | ( | const array & | in, |
| double | tolerance = 1e-5 |
||
| ) |
Double-precision or complex input requires ArrayFire Pro.
| [in] | in | |
| [in] | tolerance | only consider singular values greater than this |
| T af::det | ( | const array & | in | ) |
Double-precision or complex input requires ArrayFire Pro.
| [in] | in | square |