.ModelicaReference.Operators.'vector()'

Information

Returns an array with one non-singleton dimension as vector

Syntax

vector(A)

Description

Returns a 1-vector, if A is a scalar and otherwise returns a vector containing all the elements of the array, provided there is at most one dimension size > 1.

Examples

Real A[1,2,1] = {{{3},{4}}};
Real v[2] = vector(A);  // = {3,4}

Generated at 2019-07-23T01:37:06Z by OpenModelicaOpenModelica 1.14.0~dev-26621-ge80848f using GenerateDoc.mos