Description Usage Arguments Value Author(s) Examples
To make sbc funtion
1 | seq_array_ind(d, col_major = FALSE)
|
d |
A vector of integers |
col_major |
A logical, whether,.... ? |
A matrix, dimension is prod(d)
times length(d)
.
Some Stan developer, I am not sure,..., who?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | a <- seq_array_ind(1:3,col_major = TRUE)
#> a
#
# [,1] [,2] [,3]
# [1,] 1 1 1
# [2,] 1 2 1
# [3,] 1 1 2
# [4,] 1 2 2
# [5,] 1 1 3
# [6,] 1 2 3
b<-seq_array_ind(1:3,col_major = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.