CNA – Array (vector/matrix) constant

Block SymbolLicensing group: STANDARD
PIC

Function Description
The block CNA allocates memory for nmax elements of the type etype of the vector/matrix referenced by the output vec and initializes all elements to data stored in the parameter acn. If the string parameter filename is not empty then it loads initalization data from the filename. If the parameter TRN = on then the output reference vec contains transposed data.

Parameters

filename

CSV data file

string

TRN

Transpose loaded matrix

bool

nmax

Allocated size of array   2  10000000 100

long

etype

Type of elements  8

long

1 ....

Bool

2 ....

Byte

3 ....

Short

4 ....

Long

5 ....

Word

6 ....

DWord

7 ....

Float

8 ....

Double

–- ...

10 ...

Large

acn

Initial array value  [0 1 2 3]

double

Output

vec

Reference to vector/matrix data

reference

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