Skip to content

Commit

Permalink
Stop saying that 'promote' isn't a Modelica function
Browse files Browse the repository at this point in the history
Fixes modelica#2843.

It's rather embarrassing that we missed this in modelica#2590.
  • Loading branch information
henrikt-ma committed Feb 9, 2021
1 parent 8c8052a commit f0e9aa8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chapters/arrays.tex
Expand Up @@ -210,14 +210,14 @@ \section{Built-in Array Functions}\label{built-in-array-functions}
\tablehead{Expression} & \tablehead{Description} & \tablehead{Details}\\
\hline
\hline
\lstinline!promote($A$, $n$)! & Append dimensions of size 1 (not Modelica) & \Cref{not-modelica-promote} \\
\lstinline!promote($A$, $n$)! & Append dimensions of size 1 & \Cref{modelica:promote} \\
\hline
\end{tabular}
\end{center}

\begin{operatordefinition*}[promote]\label{not-modelica-promote}\indexinline{promote}
\begin{operatordefinition}[promote]\indexinline{promote}
\begin{synopsis}\begin{lstlisting}
promote($A$, $n$) /* Not available in Modelica. */
promote($A$, $n$)
\end{lstlisting}\end{synopsis}
\begin{semantics}
Fills dimensions of size 1 from the right to array $A$ upto dimension $n$, where $n \geq$ \lstinline!ndims($A$)! is required.
Expand All @@ -229,7 +229,7 @@ \section{Built-in Array Functions}\label{built-in-array-functions}
An $n$ that is not a constant that can be evaluated during translation for \lstinline!promote! complicates matrix handling as it can change matrix-equations in subtle ways (e.g.\ changing inner products to matrix multiplication).
\end{nonnormative}
\end{semantics}
\end{operatordefinition*}
\end{operatordefinition}

\begin{nonnormative}
Some examples of using the functions defined in the following
Expand Down

0 comments on commit f0e9aa8

Please sign in to comment.