Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions src/stan-users-guide/matrices-arrays.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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 {-}
Expand Down Expand Up @@ -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 {
Expand Down