|
|
Functions | |
| template<typename ty > | |
| ty | norm (const array &in, float p=af::NaN) |
| Matrix or vector norm. | |
| array | inverse (const array &in) |
| Matrix inversion. | |
| array | matpow (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.
// compute norm of vector x array x = randu(1e5); float y = norm<float>(x);
| [in] | in | |
| [in] | p | type of norm: |
| array af::inverse | ( | const array & | in | ) |
Matrix inversion.
Double-precision or complex input requires ArrayFire Pro.
array A = randu(5, 5); array B = randu(5, 4); array IA = inverse(A); // Regular inverse array IB = inverse(B); // Psuedo inverse
| [in] | in | square system matrix |
| array af::matpow | ( | 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 |