https://github.com/cran/pracma
Raw File
Tip revision: 0e3ae6b4108dcce6052c1e366d66aa83f8502596 authored by HwB on 10 January 2013, 00:00:00 UTC
version 1.3.8
Tip revision: 0e3ae6b
crossn.R
##
##  c r o s s n . R  tests
##

crossn <- pracma::crossn

x <- c(1.0, 0.0, 0.0)
y <- c(1.0, 0.5, 0.0)
z <- c(0.0, 0.0, 1.0)
identical(pracma::dot(x, crossn(rbind(y, z))),
          det(rbind(x, y, z)))
back to top