functiontriangle
Return the upper/lower triangular part of a square matrix
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,size(A, 1)] | A | Square matrix | |
| Boolean | upper | true | True for upper triangle to return |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[size(A, 1),size(A, 2)] | Tri | Triangular matrix |