| tcrossprod {Matrix} | R Documentation |
Take the cross-product of the transpose of a matrix.
This is formally equivalent to, but faster than, the
call x %*% t(x).
tcrossprod(x)
x |
a matrix-like object |
For some classes in the Matrix package, such as the
cscMatrix-class, it is much faster to calculate the
cross-product of the transpose directly instead of calculating the
transpose first and then its cross-product.
An object of an appropriate symmetric matrix class.