Skip to content

Commit

Permalink
Evaluable for-equation range
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed May 12, 2023
1 parent 3c56c92 commit 22f699e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/equations.tex
Expand Up @@ -104,7 +104,7 @@ \subsubsection{Explicit Iteration Ranges of For-Equations}\label{explicit-iterat

The \lstinline!expression! of a \lstinline!for!-equation shall be a vector expression, where more general array expressions are treated as vector of vectors or vector of matrices.
It is evaluated once for each \lstinline!for!-equation, and is evaluated in the scope immediately enclosing the \lstinline!for!-equation.
The expression of a \lstinline!for!-equation shall be a parameter expression.
The expression of a \lstinline!for!-equation shall be an evaluable expression.
The iteration range of a \lstinline!for!-equation can also be specified as \lstinline!Boolean! or as an enumeration type, see \cref{types-as-iteration-ranges} for more information.
The loop-variable (\lstinline!IDENT!) is in scope inside the loop-construct and shall not be assigned to.
For each element of the evaluated vector expression, in the normal order, the loop-variable gets the value of that element and that is used to evaluate the body of the \lstinline!for!-loop.
Expand Down

0 comments on commit 22f699e

Please sign in to comment.