Examples: Initialization of Composite Elements

All examples have been generated with the ANSI-C target.

ClosedArray with fixed size

(basic type = udisc, max. size = [15])

ClosedArray with variant size

(basic type = udisc, max. size = [15], system constant = sysConA)

ClosedMatrix with fixed X and Y size

(basic type = cont, max. size = [3,5], target optionsNumber of dimensions for fixed matrices = One-dimensional and Matrix Orientation = Column-major)

ClosedMatrix with variant X and Y size

(basic type = cont, max. size = [3,5], system constants = sysConX and sysConY, target optionsNumber of dimensions for fixed matrices = One-dimensional and Matrix Orientation = Column-major)

ClosedCharacteristic line

(basic type = cont, max. size = [14])

Default initialization

Optimized initialization

normal

{

14U,

{

-10, -8, -3, 1, 2, 3, 5, 7, 9, 10, 11, 13, 16, 25

},

{

14U,

{

-10, -8, -3, 1, 2, 3, 5, 7, 9, 10, 11, 13, 16, 25

},

{

1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

}

}

{

[0] = 1

}

}

fixed

{

1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

}

{

[0] = 1

}

group

{

{

1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

}

}

{

{

[0] = 1

}

}

ClosedCharacteristic map

(basic type = cont, X and Y max. size = [3,3], target optionMatrix Orientation = Column-major)

See also

Initialization of Composite Elements

ASCET Options – Targets Node

Array

Matrix

Variant Size for Arrays and Matrices

Characteristic Lines and Maps