https://github.com/cran/pracma
Raw File
Tip revision: c69aa96969f2c9b1cbf8c3970f9dc394bfcbd550 authored by Hans W. Borchers on 07 December 2021, 05:30:02 UTC
version 2.3.6
Tip revision: c69aa96
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