Engee documentation

Extract Diagonal

Extracting the main diagonal from the input matrix.

blockType: ExtractDiagonal

Path in the library:

/Basic/Matrix Operations/Extract Diagonal

Description

Block Extract Diagonal fills the output vector with elements of the main diagonal of the input matrix size on .

Ports

Input

# A — Input signal
scalar | vector | the matrix

Details

The input matrix from which you want to extract the diagonal; scalar, vector or matrix.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, Uint128, Fixed, Bool

Complex numbers support

I don’t

Output

# D — a vector of diagonal elements
vector

Details

The output vector consists of the diagonal elements of the input matrix.

The output vector has length .

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, Uint128, Fixed, Bool

Complex numbers support

I don’t

Additional options

C code generation: Yes