MX_MAT – Matrix data storage block

Block SymbolLicensing group: STANDARD
PIC

Function Description
The function block MX_MAT allocates memory (during the block initialization) for mn elements of the type determined by the parameter etype of the matrix referenced by the output yMat. Also matrix leading dimension can be set by the parameter ld. If ld < m then the leading dimension is set to m.

Note that the present version of the MATRIX function block set supports only matrices with the etype equal to 8: Double.

Parameters

m

Number of matrix rows   1  1000000000 10

Long (I32)

n

Number of matrix columns   1  1000000000 10

Long (I32)

ld

Leading dimension (>= number of rows)   0  1000000000

Long (I32)

etype

Type of elements  8

Long (I32)

1 ....

Bool

2 ....

Byte (U8)

3 ....

Short (I16)

4 ....

Long (I32)

5 ....

Word (U16)

6 ....

DWord (U32)

7 ....

Float (F32)

8 ....

Double (F64)

–- ...

10 ...

Large (I64)

Output

yMat

Output reference to a matrix

Reference

2024 © REX Controls s.r.o., www.rexygen.com