Documentation
|
|
Calculate the norm of a vector. More...
| template<typename ty > | |
| ty | norm (const array &in, float p=af::NaN) |
| Matrix or vector norm. More... | |
Calculate the norm of a vector.
Detailed description of norm TODO:
| 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);
print(norm< float >(x));
| [in] | in | |
| [in] | p | type of norm: |