Revision 7ba95550c2066826c77bc78b974b7cb8cd416301 authored by Hans W. Borchers on 11 January 2017, 00:43:13 UTC, committed by cran-robot on 11 January 2017, 00:43:13 UTC
1 parent 00dcc24
blkdiag.R
##
## r e p m a t . R Test Suite
##
repmat <- pracma::repmat
Reshape <- pracma::Reshape
v <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
a <- matrix(v, 3, 4)
identical(Reshape(a, 4, 3), matrix(v, 4, 3))
identical(repmat(matrix(1:4, 2, 2), 3),
matrix(rep(c(rep(c(1,2), 3), rep(c(3, 4), 3)), 3), nrow=6, ncol=6))
Computing file changes ...