Int32Array

signal TPT.Int32Array(int dim, [string name])

Declares a new assessment array variable of the specified inner type int32

Parameters:

dim dimension of the newly created array

[name] (optional) logical name of the new assessment variable. This parameter is optional. If not specified, the name will be automatically derived from the variable name it is assigned to. Example foo = TPT.Int32Array(dim) leads to a new assessment variable with logical name foo

Returns:

new assessment variable

Examples:

   # create an int32 array variable with name "dv" and set the value of array members individually
   dv = TPT.Int32Array(3);
   dv[0] := 2;
   dv[1](t) := t < 2s ? 1 : 5;
   during TPT.Interval(1s,2s):
     dv[2] := 17;