Skip to content

Commit

Permalink
Clean up whitespace in array function example
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Sep 27, 2020
1 parent 0bcdd18 commit 795232e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions chapters/arrays.tex
Expand Up @@ -220,14 +220,14 @@ \section{Built-in Array Functions}\label{built-in-array-functions}
Some examples of using the functions defined in the following
\cref{array-dimension-and-size-functions} to \cref{matrix-and-vector-algebra-functions}:
\begin{lstlisting}[language=modelica]
Real x[4,1,6];
size(x,1) = 4;
Real x[4, 1, 6];
size(x, 1) = 4;
size(x); // vector with elements 4, 1, 6
size(2*x+x ) = size(x);
size(2 * x + x) = size(x);
Real[3] v1 = fill(1.0, 3);
Real[3,1] m = matrix(v1);
Real[3, 1] m = matrix(v1);
Real[3] v2 = vector(m);
Boolean check[3,4] = fill(true, 3, 4);
Boolean check[3, 4] = fill(true, 3, 4);
\end{lstlisting}
\end{nonnormative}

Expand Down

0 comments on commit 795232e

Please sign in to comment.