Skip to content

Commit

Permalink
Mark entire introduction to array chapter as non-normative.
Browse files Browse the repository at this point in the history
As far as I could see all the normative parts were duplicated from the chapter
and thus redundant.
  • Loading branch information
HansOlsson committed Sep 9, 2020
1 parent 8dba6d6 commit fc393b5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions chapters/arrays.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,20 @@ \chapter{Arrays}\label{arrays}
regarded as an array with zero dimensions. Vectors have one dimension,
matrices have two dimensions, etc.

\begin{nonnormative}

So-called row vectors and column vectors do not exist in Modelica and cannot be distinguished since vectors have only one
dimension. If distinguishing these is desired, row matrices and column matrices are available, being the corresponding
two-dimensional entities. However, in practice this is seldom needed since the usual matrix arithmetic and linear algebra
operations have been defined to give the expected behavior when operating on Modelica vectors and matrices.
\end{nonnormative}

Modelica is a strongly typed language, which also applies to array
types. The number of dimensions of an array is fixed and cannot be
changed at run-time. However, the sizes of array dimensions can
be computed at run-time.

\begin{nonnormative}
The fixed number of array dimensions permits strong type checking and efficient implementation. The non-fixed sizes of array
dimensions on the other hand, allow fairly generic array manipulation code to be written as well as interfacing to standard
numeric libraries implemented in other programming languages.
\end{nonnormative}

An array is allocated by declaring an array variable or calling an array
constructor. Elements of an array can be indexed by \lstinline!Integer!, \lstinline!Boolean!, or
Expand Down

0 comments on commit fc393b5

Please sign in to comment.