Description Usage Arguments Value Communication Examples
Conceptually, this computes t(x) %*% x
for a shaq x
.
1 2 3 4 5 | ## S4 method for signature 'shaq'
crossprod(x, y = NULL)
## S4 method for signature 'tshaq'
tcrossprod(x, y = NULL)
|
x |
A shaq. |
y |
A shaq or |
A regular matrix.
The operation consists of a local crossproduct, followed by an
allreduce()
call, quadratic on the number of columns.
For crossprod()
, if the matrix distribution is poorly balanced
(specifically, if any rank has fewer rows than columns), then an inefficient
method is used. Similarly for tcrossprod()
if the number of local rows
is greater than the number of local columns.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.