|
9155 | 9155 |
|
9156 | 9156 | \pnum
|
9157 | 9157 | \effects
|
9158 |
| -Assigns through each iterator \tcode{i} in \range{result}{result + (last - first)} the value of |
| 9158 | +For each integer \tcode{K} in \range{0}{last - first} |
| 9159 | +assigns through \tcode{result + K} the value of: |
9159 | 9160 | \begin{codeblock}
|
9160 |
| -@\placeholder{GENERALIZED_NONCOMMUTATIVE_SUM}@(binary_op, init, *j, ...) |
| 9161 | +@\placeholdernc{GENERALIZED_NONCOMMUTATIVE_SUM}@( |
| 9162 | + binary_op, init, *(first + 0), *(first + 1), ..., *(first + K - 1)) |
9161 | 9163 | \end{codeblock}
|
9162 |
| -for every \tcode{j} in \range{first}{first + (i - result)}. |
9163 | 9164 |
|
9164 | 9165 | \pnum
|
9165 | 9166 | \returns
|
|
9248 | 9249 |
|
9249 | 9250 | \pnum
|
9250 | 9251 | \effects
|
9251 |
| -Assigns through each iterator \tcode{i} in \range{result}{result + (last - first)} the value of |
| 9252 | +For each integer \tcode{K} in \range{0}{last - first} |
| 9253 | +assigns through \tcode{result + K} the value of |
9252 | 9254 | \begin{itemize}
|
9253 | 9255 | \item
|
9254 |
| -\tcode{\textit{GENERALIZED_NONCOMMUTATIVE_SUM}(binary_op, init, *j, ...)} |
9255 |
| -for every \tcode{j} in \range{first}{first + (i - result + 1)} |
9256 |
| -if \tcode{init} is provided, or |
| 9256 | + \tcode{\placeholdernc{GENERALIZED_NONCOMMUTATIVE_SUM}(\\\phantom{\tcode{\ \ \ \ }}binary_op, |
| 9257 | + init, *(first + 0), *(first + 1), ..., *(first + K))}\\if \tcode{init} is provided, or |
9257 | 9258 | \item
|
9258 |
| -\tcode{\textit{GENERALIZED_NONCOMMUTATIVE_SUM}(binary_op, *j, ...)} |
9259 |
| -for every \tcode{j} in \range{first}{first + (i - result + 1)} otherwise. |
| 9259 | + \tcode{\placeholdernc{GENERALIZED_NONCOMMUTATIVE_SUM}(\\\phantom{\tcode{\ \ \ \ }}binary_op, |
| 9260 | + *(first + 0), *(first + 1), ..., *(first + K))}\\otherwise. |
9260 | 9261 | \end{itemize}
|
9261 | 9262 |
|
9262 | 9263 | \pnum
|
|
9310 | 9311 |
|
9311 | 9312 | \pnum
|
9312 | 9313 | \effects
|
9313 |
| -Assigns through each iterator \tcode{i} in \range{result}{result + (last - first)} the value of |
9314 |
| -\tcode{\textit{GENERALIZED_NONCOMMUTATIVE_SUM}(binary_op, init, unary_op(*j), ...)} |
9315 |
| -for every \tcode{j} in \range{first}{first + (i - result)}. |
| 9314 | +For each integer \tcode{K} in \range{0}{last - first} |
| 9315 | +assigns through \tcode{result + K} the value of: |
| 9316 | +\begin{codeblock} |
| 9317 | +@\placeholdernc{GENERALIZED_NONCOMMUTATIVE_SUM}@( |
| 9318 | + binary_op, init, |
| 9319 | + unary_op(*(first + 0)), unary_op(*(first + 1)), ..., unary_op(*(first + K - 1))) |
| 9320 | +\end{codeblock} |
9316 | 9321 |
|
9317 | 9322 | \pnum
|
9318 | 9323 | \returns
|
|
9383 | 9388 |
|
9384 | 9389 | \pnum
|
9385 | 9390 | \effects
|
9386 |
| -Assigns through each iterator \tcode{i} in \range{result}{result + (last - first)} the value of |
| 9391 | +For each integer \tcode{K} in \range{0}{last - first} |
| 9392 | +assigns through \tcode{result + K} the value of |
9387 | 9393 | \begin{itemize}
|
9388 | 9394 | \item
|
9389 |
| -\tcode{\textit{GENERALIZED_NONCOMMUTATIVE_SUM}(binary_op, init, unary_op(*j), ...)} |
9390 |
| -for every \tcode{j} in \range{first}{first + (i - result + 1)} |
9391 |
| -if \tcode{init} is provided, or |
| 9395 | + \tcode{\placeholdernc{GENERALIZED_NONCOMMUTATIVE_SUM}(\\\phantom{\tcode{\ \ \ \ }}binary_op, init,\\\phantom{\tcode{\ \ \ \ }}unary_op(*(first + 0)), unary_op(*(first + 1)), ..., unary_op(*(first + K)))}\\ |
| 9396 | + if \tcode{init} is provided, or |
9392 | 9397 | \item
|
9393 |
| -\tcode{\textit{GENERALIZED_NONCOMMUTATIVE_SUM}(binary_op, unary_op(*j), ...)} |
9394 |
| -for every \tcode{j} in \range{first}{first + (i - result + 1)} otherwise. |
| 9398 | + \tcode{\placeholdernc{GENERALIZED_NONCOMMUTATIVE_SUM}(\\\phantom{\tcode{\ \ \ \ }}binary_op,\\\phantom{\tcode{\ \ \ \ }}unary_op(*(first + 0)), unary_op(*(first + 1)), ..., unary_op(*(first + K)))}\\ |
| 9399 | + otherwise. |
9395 | 9400 | \end{itemize}
|
9396 | 9401 |
|
9397 | 9402 | \pnum
|
|
0 commit comments