From 22f699eec13cd48c4dc0d9625e29cde6b6f2d49b Mon Sep 17 00:00:00 2001 From: HOS Date: Fri, 12 May 2023 13:37:59 +0200 Subject: [PATCH] Evaluable for-equation range --- chapters/equations.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/equations.tex b/chapters/equations.tex index 6d70aa93b..639250ca7 100644 --- a/chapters/equations.tex +++ b/chapters/equations.tex @@ -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.