Skip to content

Commit

Permalink
Update chapters/arrays.tex
Browse files Browse the repository at this point in the history
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
HansOlsson and henrikt-ma committed Jan 19, 2022
1 parent e48cc9e commit 00b492d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chapters/arrays.tex
Expand Up @@ -1415,7 +1415,8 @@ \section{Empty Arrays}\label{empty-arrays}
Real A[0, 3], B[5, 0], C[0, 0]; // empty matrices
\end{lstlisting}

Empty matrices can be constructed using the \lstinline!fill! function. For example:
Empty matrices can be constructed using the \lstinline!fill! function.
For example:
\begin{lstlisting}[language=modelica]
Real A[:,:] = fill(0.0, 0, 1); // a Real 0 x 1 matrix
Boolean B[:, :, :] = fill(false, 0, 1, 0); // a Boolean 0 x 1 x 0 matrix
Expand Down

0 comments on commit 00b492d

Please sign in to comment.