找回密码
 注册
查看: 2643|回复: 0

R语言:bdiag()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 18:46:01 | 显示全部楼层 |阅读模式
bdiag(Matrix)
bdiag()所属R语言包:Matrix

                                        Construct a Block Diagonal Matrix
                                         构造块对角矩阵

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Build a block diagonal matrix given several building block matrices.
建立一个块对角矩阵,给出了几个建筑分块矩阵。


用法----------Usage----------


bdiag(...)
.bdiag(lst)



参数----------Arguments----------

参数:...
individual matrices or a list of matrices.
个别矩阵或list的矩阵。


参数:lst
non-empty list of matrices.
非空list矩阵。


Details

详情----------Details----------

For non-trivial argument list, bdiag() calls .bdiag(). The latter maybe useful to programmers
不平凡的参数列表,bdiag().bdiag()。后者也许是对程序员有用


值----------Value----------

A sparse matrix obtained by combining the arguments into a block diagonal matrix.
稀疏矩阵结合成一个块对角矩阵的参数。

The value of bdiag() inheris from class CsparseMatrix, whereas .bdiag() returns a TsparseMatrix.
的值从类bdiag()inheris的:CsparseMatrix,而.bdiag()返回一个TsparseMatrix。


作者(S)----------Author(s)----------


Martin Maechler, built on a version posted by Berton Gunter to
R-help; earlier versions have been posted by other authors, notably
Scott Chasalow to S-news.  Doug Bates's faster implementation builds
on <code><a href="../../Matrix/help/TsparseMatrix%2dclass">TsparseMatrix</a></code> objects.




参见----------See Also----------

Diagonal for constructing matrices of class diagonalMatrix, or kronecker which also works for "Matrix" inheriting matrices.
Diagonal建设diagonalMatrix或kronecker"Matrix"继承矩阵类矩阵。

bandSparse constructs a banded sparse matrix from its non-zero sub-/super - diagonals.
bandSparse构造从非零sub-/super的的带状稀疏矩阵 - 对角线。

Note that other CRAN R packages have own versions of bdiag() which return traditional matrices.
注意其他CRAN的R包bdiag()有自己的版本,返回传统的矩阵。


举例----------Examples----------


bdiag(matrix(1:4, 2), diag(3))
## combine "Matrix" class and traditional matrices:[#相结合的“矩阵”类和传统的矩阵:]
bdiag(Diagonal(2), matrix(1:3, 3,4), diag(3:2))

mlist <- list(1, 2:3, diag(x=5:3), 27, cbind(1,3:6), 100:101)
bdiag(mlist)

stopifnot(identical(bdiag(mlist),
                    bdiag(lapply(mlist, as.matrix))))

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-3 07:02 , Processed in 0.023468 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表