seq_array_ind: Makes a Matrix from a vector of itegers

Description Usage Arguments Value Author(s) Examples

Description

To make sbc funtion

Usage

1
seq_array_ind(d, col_major = FALSE)

Arguments

d

A vector of integers

col_major

A logical, whether,.... ?

Value

A matrix, dimension is prod(d) times length(d).

Author(s)

Some Stan developer, I am not sure,..., who?

Examples

 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)

BayesianFROC documentation built on Jan. 23, 2022, 9:06 a.m.