Extracts the upper triangular matrix. More...

array upper (const array &input, int diagonal=0)
 Extract upper triangular matrix. More...
 

Detailed Description

Extracts the upper triangular matrix.

Returns the upper triangular matrix

Function Documentation

array af::upper ( const array &  input,
int  diagonal = 0 
)

Extract upper triangular matrix.

Parameters
[in]inputmatrix
[in]diagonalto include in extraction: diagonal==0 is the center diagonal (default), diagonal>0 is above, and diagonal<0 is below.
Returns
upper triangular part of the matrix