A high-performance general-purpose compute library

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...
 

Detailed Description

Return the upper triangular matrix from an input array.


Function Documentation

◆ af_upper()

AFAPI af_err af_upper ( af_array out,
const af_array  in,
bool  is_unit_diag 
)

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

◆ upper()

AFAPI array upper ( const array in,
bool  is_unit_diag = false 
)

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