crossprod(slam)
crossprod()所属R语言包:slam
Matrix Crossproduct
矩阵交叉积
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Compute the matrix cross-product of a sparse and dense matrix.
计算矩阵的交叉乘积的稀疏和密集矩阵。
用法----------Usage----------
tcrossprod_simple_triplet_matrix(x, y = NULL)
参数----------Arguments----------
参数:x
a matrix in simple_triplet_matrix-form.
矩阵simple_triplet_matrix形式。
参数:y
a numeric matrix.
数字矩阵。
Details
详细信息----------Details----------
Provides fast computation of x %*% t(x) and x %*% t(y) (tcrossprod).
提供快速计算x %*% t(x)和x %*% t(y)(tcrossprod)。
值----------Value----------
A double matrix, with appropriate dimnames taken from x and y.
双矩阵,适当dimnames,从x和y。
注意----------Note----------
If y (or x) contains any of the special values NA, NaN, or Inf (if y = NULL) then x is coerced to matrix and the computation is delegated to tcrossprod.
如果y(或x)包含任何特殊值NA,NaN或Inf(如果y = NULL),然后<X >被胁迫x和计算委托给matrix。
(作者)----------Author(s)----------
Christian Buchta
参见----------See Also----------
crossprod for dense-on-dense computations.
crossprod密集的密集计算。
实例----------Examples----------
## [#]
x <- matrix(c(1, 0, 0, 2, 1, 0), nrow = 3)
x
s <- as.simple_triplet_matrix(x)
tcrossprod_simple_triplet_matrix(s, x)
##[#]
tcrossprod_simple_triplet_matrix(s)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|