Description Usage Arguments Value Author(s) Examples
Compare the output of tcrossprod
with standard matrix multiplication.
1 | tcpCompare(x, y)
|
x |
A matrix-like object. |
y |
Another matrix-like object. |
A logical scalar indicating whether tcrossprod(x, y)
is identical to x %*% t(y)
.
Aaron Lun
1 2 3 4 5 6 7 8 | NC <- 10
NP <- 20
NR <- 50
comp <- matrix(rnorm(NC*NP), ncol=NP)
rot <- Matrix::rsparsematrix(NR, NP, 0.1)
tcpCompare(comp, rot)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.