The following examples illustrate built-in functions that return the number of dimensions of an array (ndims(A)), the sizes of its dimensions (size(A, i)), or the size of a specific dimension (size(A)).
Take a look at an array element value at time=1:
The following conversion functions convert scalars, vectors, and arrays to scalars or matrices by adding or removing 1-sized dimensions.
Take a look at an array element value at time=1:
An array constructor function constructs and returns an array computed from its arguments. Most of the constuctor functions in the table below construct an array by filling in values according to a certain pattern.
Take a look at an array element value at time=0:
An array reduction function "reduces" an array to a scalar value, i.e. computes a scalar value from the array.
Take a look at the value at time=0:
The following set of functions are rather common in matrix and vector algebra, but are not associated with any Modelica operator symbol.
Take a look at the value at time=0: