Skip to content

Commit 9c3af80

Browse files
committed
Added space to make ordered list format correctly in reduce-sum section (design-docs pull req #17)
1 parent 24467fd commit 9c3af80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stan-users-guide/parallel-computing.Rmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Stan has two mechanisms for parallelizing calculations used in a model: `reduce_sum` and and `map_rect`.
44

55
The main differences are:
6+
67
1. `reduce_sum` requires the result of the calculation to be a scalar, while `map_rect` returns a list of vectors
78
2. `reduce_sum` has a more flexible interface and can accept arbitrary Stan types as arguments, `map_rect` is more restrictive on what arguments can be and how they are shaped
89
3. `map_rect` can parallelize work over multiple computers or a single computer, while `reduce_sum` works only on a single computer
@@ -164,7 +165,7 @@ target += reduce_sum(reducer_func, y,
164165
```
165166

166167
`reduce_sum` automatically breaks the sum into roughly `grainsize` sized pieces
167-
and computes them in parallel. `grainsize = 0` specifies that the grainsize should
168+
and computes them in parallel. `grainsize = 1` specifies that the grainsize should
168169
be estimated automatically.
169170

170171
### Picking the Grainsize

0 commit comments

Comments
 (0)