Create a upper triangular marix from input array.
More...
Create a upper triangular marix from input array.
=======================================================================
- Parameters
-
[out] | out | is the upper triangle matrix |
[in] | in | is the input matrix |
[in] | is_unit_diag | is a boolean parameter specifying if the diagonal elements should be 1 |
AFAPI array af::upper |
( |
const array & |
in, |
|
|
bool |
is_unit_diag = false |
|
) |
| |
- Parameters
-
[in] | in | is the input matrix |
[in] | is_unit_diag | is a boolean parameter specifying if the diagonal elements should be 1 |
- Returns
- the upper triangle matrix
- Examples:
- lin_algebra/lu.cpp.