diag.block(simex)
diag.block()所属R语言包:simex
Constructs a block diagonal matrix
构造块对角矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function takes a list and constructs a block diagonal matrix with the elements of the list on the diagonal. If d is not a list then d will be repeated n times and written on the diagonal (a wrapper for kronecker())
这个函数接受一个list和构造块对角矩阵对角线上的元素的列表。如果d是不是一个列表,然后d重复n倍和书面的对角线上(kronecker())的包装
用法----------Usage----------
diag.block(d, n)
参数----------Arguments----------
参数:d
a list of matrices or vectors, or a matrix or vector
list的矩阵或向量或矩阵或向量
参数:n
number of repetitions
的重复次数
值----------Value----------
returns a matrix with the elements of the list or the repetitions of the supplied matrix or vector on the diagonal.
返回一个矩阵的元素的列表或对角线上的所提供的矩阵或矢量的重复。
(作者)----------Author(s)----------
Wolfgang Lederer, <a href="mailto:wolfgang.lederer@googlemail.com">wolfgang.lederer@googlemail.com</a>
参见----------See Also----------
diag, kronecker
diag,kronecker
实例----------Examples----------
a <- matrix(rep(1, 4), nrow = 2)
b <- matrix(rep(2, 6), nrow = 2)
e <- c(3, 3, 3, 3)
f <- t(e)
d <- list(a, b, e, f)
diag.block(d)
diag.block(a, 3)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|