https://github.com/cran/pracma
Revision 03698027c2d84118bd0c53c4a9a5b5d23676f388 authored by HwB on 01 October 2012, 00:00:00 UTC, committed by Gabor Csardi on 01 October 2012, 00:00:00 UTC
1 parent 9fdea5d
Raw File
Tip revision: 03698027c2d84118bd0c53c4a9a5b5d23676f388 authored by HwB on 01 October 2012, 00:00:00 UTC
version 1.2.0
Tip revision: 0369802
hankel.R
##
##  hankel.R  Test
##

hankel <- pracma::hankel

identical(hankel(2), matrix(2, nrow=1, ncol=1))
identical(hankel(1:3), matrix(c(1,2,3,2,3,0,3,0,0), 3, 3))
identical(hankel(1:3, 3:1), matrix(c(1,2,3,2,3,2,3,2,1), 3, 3))
identical(hankel(1:3, 2:1), matrix(c(1,2,3,2,3,1), 3, 2))
identical(hankel(1:2, 3:1), matrix(c(1,2,2,2,2,1), 2, 3))
back to top