ArrayFire: upper (original) (raw)
Return the upper triangular matrix from an input array. More...
| Functions | |
|---|---|
| AFAPI array | upper (const array &in, bool is_unit_diag=false) |
| C++ Interface to return the upper triangle array. More... | |
| AFAPI af_err | af_upper (af_array *out, const af_array in, bool is_unit_diag) |
| C Interface to return the upper triangle array. More... | |
Return the upper triangular matrix from an input array.
◆ af_upper()
C Interface to return the upper triangle array.
Parameters
| [out] | out | upper triangle array |
|---|---|---|
| [in] | in | input array |
| [in] | is_unit_diag | boolean specifying if diagonal elements are 1's |
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
C++ Interface to return the upper triangle array.
Parameters
| [in] | in | input array |
|---|---|---|
| [in] | is_unit_diag | boolean specifying if diagonal elements are 1's |
Returns
upper triangle matrix