https://github.com/cran/pracma
Revision e2512490ec9e26c0bfb230f9fd97bcf07cc8c07b authored by Hans W. Borchers on 10 November 2023, 00:10:02 UTC, committed by cran-robot on 10 November 2023, 03:30:53 UTC
1 parent 85eeff7
Tip revision: e2512490ec9e26c0bfb230f9fd97bcf07cc8c07b authored by Hans W. Borchers on 10 November 2023, 00:10:02 UTC
version 2.4.4
version 2.4.4
Tip revision: e251249
subspace.R
##
## s u b s p a c e . r Test suite
##
orth <- pracma::orth
subspace <- pracma::subspace
is.null(orth(c()))
M <- matrix(1:12, 3, 4)
all.equal(orth(M),
matrix(c(-0.504533, -0.760776,
-0.574516, -0.057141,
-0.644497, 0.646495), 3, 2, byrow = TRUE),
tolerance = 1e-5)
H <- pracma::hadamard(8)
A <- H[, 2:4]
B <- H[, 5:8]
all.equal(subspace(A, B), pi/2, tolerance = 1e-10)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...