# NOT RUN {
# }
# NOT RUN {
<!-- % library(miraculix) -->
# }
# NOT RUN {
set.seed(0)
n <- sample(1000, 1)
M <- cbind(sample(1:2^6, n, replace=TRUE),
sample(1:2^1, n, replace=TRUE),
sample(1:2^22, n, replace=TRUE),
sample(1:2^3, n, replace=TRUE))
print(head(M))
Z <- matrix(NA, ncol=ncol(M), nrow=nrow(M))
CM <- codeOrigins(M)
print(head(CM))
for (i in 1:nrow(M)) Z[i, ] <- decodeOrigins(CM, i)
stopifnot(all(M == Z))
# }
Run the code above in your browser using DataLab