Engee documentation

IsTriangular

Check whether the original matrix is an upper or lower triangular matrix.

blockType: IsTriangular

Path in the library:

/Basic/Matrix Operations/IsTriangular

Description

The IsTriangular block determines whether the source matrix is an upper or lower triangular matrix.

Ports

Input

Port_1 - source matrix
matrix

Initial matrix.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool.

Output

Port_1 - result of definition
logical value, real scalar

The result of determining whether the matrix is upper or lower triangular.

Data types: Bool.

Parameters

Mode - mode of definition: top or bottom
Upper (by default) | Lower

Sets the definition mode:

  • Upper - the block determines whether the matrix is an upper triangular matrix.

  • Lower - block defines whether the matrix is a lower triangular matrix.