kronecker(spam)
kronecker()所属R语言包:spam
Kronecker Products on Sparse Matrices
稀疏矩阵的Kronecker积
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the generalised kronecker product of two arrays, X and
计算两个数组,广义Kronecker积X和
用法----------Usage----------
kronecker.spam(X, Y, FUN = "*", make.dimnames = FALSE, ...)
参数----------Arguments----------
参数:X
sparse matrix of class spam, a vector or a matrix.
稀疏矩阵类spam,一个矢量或矩阵。
参数:Y
sparse matrix of class spam, a vector or a matrix.
稀疏矩阵类spam,一个矢量或矩阵。
参数:FUN
a function; it may be a quoted string. See details
一个功能,它可以是带引号的字符串。查看详细资料
参数:make.dimnames
Provide dimnames that are the product of the dimnames of X and Y.
提供dimnames的产品X和Y的dimnames的。
参数: ...
optional arguments to be passed to FUN.
可选参数被传递到FUN。
Details
详细信息----------Details----------
The sparsity structure is determined by the ordinary %x%. Hence, the result of kronecker(X, Y, FUN = "+") is different depending on the input.
的稀疏结构的确定由普通%x%。因此,kronecker(X, Y, FUN = "+")的结果是不同的,取决于输入。
值----------Value----------
An array A with dimensions
数组A尺寸
(作者)----------Author(s)----------
Reinhard Furrer
实例----------Examples----------
# Starting with non-spam objects, we get a spam matrix[与非垃圾邮件的对象开始,我们得到了一个垃圾邮件矩阵]
kronecker.spam( diag(2), array(1:4, c(2, 2)))
kronecker( diag.spam(2), array(1:4, c(2, 2)))
# Notice the preservation of sparsity structure: [请注意,保存的稀疏结构:]
kronecker( diag.spam(2), array(1:4, c(2, 2)), FUN="+")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|