From ee9a18b02ff148aac2a28f94d0a02cca6dcec18e Mon Sep 17 00:00:00 2001 From: Yixuan Qiu Date: Wed, 29 Oct 2025 16:53:57 +0800 Subject: [PATCH] proposed fix in documentation --- src/stan-users-guide/matrices-arrays.qmd | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/stan-users-guide/matrices-arrays.qmd b/src/stan-users-guide/matrices-arrays.qmd index d550327bc..9af87bc8b 100644 --- a/src/stan-users-guide/matrices-arrays.qmd +++ b/src/stan-users-guide/matrices-arrays.qmd @@ -71,8 +71,7 @@ Tuples provide a way to represent a sequence of values of heterogeneous types. For example, `tuple(int, real)` is the type of a pair consisting of an integer and a real number and `tuple(array[5] int, vector[6])` is the type of pairs where the first element is a -five-element array of integers, the second entry is an integer, and -the third is a six-element vector. +five-element array of integers, and the second is a six-element vector. ### Tuple syntax {-} @@ -409,12 +408,9 @@ operations involving multiple indexing and range indexing. Stan expressions are all evaluated before assignment happens, so there is no danger of so-called aliasing in array, vector, or matrix -operations. Contrast the behavior of the assignments to `u` and -`x`, which start with the same values. - -The loop assigning to `u` and the compound slicing assigning to `x`. - - the following trivial Stan program. +operations. In the following Stan program, contrast the behavior of +the loop assignment to `u` and the compound slicing assignment to `x`, +where `u` and `x` start with the same values. ```stan transformed data {