Create a upper triangular matrix from input array. More...

Functions

AFAPI array upper (const array &in, bool is_unit_diag=false)
 
AFAPI af_err af_upper (af_array *out, const af_array in, bool is_unit_diag)
 

Detailed Description

Create a upper triangular matrix from input array.


Function Documentation

◆ af_upper()

AFAPI af_err af_upper ( af_array out,
const af_array  in,
bool  is_unit_diag 
)
Parameters
[out]outis the upper triangle matrix
[in]inis the input matrix
[in]is_unit_diagis a boolean parameter specifying if the diagonal elements should be 1

◆ upper()

AFAPI array af::upper ( const array in,
bool  is_unit_diag = false 
)
Parameters
[in]inis the input matrix
[in]is_unit_diagis a boolean parameter specifying if the diagonal elements should be 1
Returns
the upper triangle matrix
Examples
lin_algebra/lu.cpp.