Compute the default binary partition used in CoDaPack's software

cdp_partition(ncomp)

Arguments

ncomp

number of parts

Value

matrix

Examples

cdp_partition(4)
#>      [,1] [,2] [,3]
#> [1,]    1    1    0
#> [2,]    1   -1    0
#> [3,]   -1    0    1
#> [4,]   -1    0   -1