We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 700195a commit ba7b0e8Copy full SHA for ba7b0e8
src/reference-manual/expressions.qmd
@@ -301,6 +301,19 @@ The empty expression `[ ]` is ambiguous and therefore is not
301
allowed and similarly expressions such as `[ [ ] ]` or
302
`[ [ ], [ ] ]` are not allowed.
303
304
+#### Empty vectors and matrices {-}
305
+
306
+If needed, it is possible to create an empty vector with
307
+```stan
308
+rep_vector(e, 0)
309
+```
310
+where the first expression `e` needs to scalar of type `real`.
311
312
+If needed, it is possible to create an empty matrix with
313
314
+rep_matrix(e, 0, 0)
315
316
317
318
### Array expressions {-}
319
0 commit comments