ArrayFire: upper

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]outupper triangle array
[in]ininput array
[in]is_unit_diagboolean 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]ininput array
[in]is_unit_diagboolean specifying if diagonal elements are 1's
Returns
upper triangle matrix