Compute the (transposed) cross-product of large sparse matrices using the same
infrastructure as simil()
and dist()
.
crossprod(x, y = NULL, min_prod = NULL, digits = 14)tcrossprod(x, y = NULL, min_prod = NULL, digits = 14)
a base::matrix or Matrix::Matrix object. Dense matrices are covered to the Matrix::CsparseMatrix internally.
if a base::matrix or Matrix::Matrix object is provided, proximity
between documents or features in x
and y
is computed.
the minimum product to be recorded.
determines rounding of small values towards zero. Use primarily to correct floating point errors. Rounding is performed in C++ in a similar way as base::zapsmall.