| crossprod {slam} | R Documentation |
Compute the matrix cross-product of a sparse and dense matrix.
tcrossprod.simple_triplet_matrix(x, y = NULL)
x |
a matrix in simple_triplet_matrix-form.
|
y |
a numeric matrix. |
Provides fast computation of x %*% t(y) (tcrossprod).
A double matrix, with appropriate dimnames taken from x
and y.
If y = NULL or contains any of the special values NA,
NaN, or Inf then x is coerced to matrix and
the computation is delegated to tcrossprod.
Christian Buchta
crossprod for dense-on-dense computations.
## x <- matrix(c(1, 0, 0, 2, 1, 0), nrow = 3) x s <- as.simple_triplet_matrix(x) tcrossprod.simple_triplet_matrix(s, x) ## see note tcrossprod.simple_triplet_matrix(s)