diagonalMatrix-class(Matrix)
diagonalMatrix-class()所属R语言包:Matrix
Class "diagonalMatrix" of Diagonal Matrices
类的“diagonalMatrix”对角矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Class "diagonalMatrix" is the virtual class of all diagonal matrices.
类“diagonalMatrix”是所有对角矩阵的虚拟课堂。
类的对象----------Objects from the Class----------
A virtual Class: No objects may be
虚拟类:无对象可能
插槽----------Slots----------
diag: code"character" string, either "U" or
diag:代码“性格”的字符串,要么"U"
Dim: matrix dimension, and
Dim:矩阵的维数,
Dimnames: the dimnames, a list, see the Matrix class
Dimnames:dimnames,list,看到Matrix类
延伸----------Extends----------
Class "sparseMatrix", directly.
类"sparseMatrix",直接。
方法----------Methods----------
These are just a subset of the signature for which defined methods. Currently, there are (too) many explicit methods defined in order to ensure efficient methods for diagonal matrices.
这些仅仅是为定义的方法签名的子集。目前,有(太)许多明确的界定,以确保有效的方法对角矩阵的方法。
coerce signature(from = "matrix", to = "diagonalMatrix"): ...
要挟signature(from = "matrix", to = "diagonalMatrix")...
coerce signature(from = "Matrix", to = "diagonalMatrix"): ...
要挟signature(from = "Matrix", to = "diagonalMatrix")...
coerce signature(from = "diagonalMatrix", to = "generalMatrix"): ...
要挟signature(from = "diagonalMatrix", to = "generalMatrix")...
coerce signature(from = "diagonalMatrix", to = "triangularMatrix"): ...
要挟signature(from = "diagonalMatrix", to = "triangularMatrix")...
coerce signature(from = "diagonalMatrix", to = "nMatrix"): ...
要挟signature(from = "diagonalMatrix", to = "nMatrix")...
coerce signature(from = "diagonalMatrix", to = "matrix"): ...
要挟signature(from = "diagonalMatrix", to = "matrix")...
coerce signature(from = "diagonalMatrix", to = "sparseVector"): ...
要挟signature(from = "diagonalMatrix", to = "sparseVector")...
t signature(x = "diagonalMatrix"): ...
Tsignature(x = "diagonalMatrix")...
%*% signature(x = "dgeMatrix", y = "diagonalMatrix"): ...
%*%signature(x = "dgeMatrix", y = "diagonalMatrix")...
%*% signature(x = "matrix", y = "diagonalMatrix"): ...
%*%signature(x = "matrix", y = "diagonalMatrix")...
%*% signature(x = "diagonalMatrix", y = "matrix"): ...
%*%signature(x = "diagonalMatrix", y = "matrix")...
%*% signature(x = "diagonalMatrix", y = "dgeMatrix"): ...
%*%signature(x = "diagonalMatrix", y = "dgeMatrix")...
crossprod signature(x = "diagonalMatrix", y = "dgeMatrix"): ...
crossprodsignature(x = "diagonalMatrix", y = "dgeMatrix")...
<br> and many more methods
参考和更多的方法
solve signature(a = "diagonalMatrix", b, ...): is
解决signature(a = "diagonalMatrix", b, ...):
which signature(x = "nMatrix"), semantically
signature(x = "nMatrix"),语义
* signature(e1 = "ddiMatrix", e2="denseMatrix"): arithmetic and other operators from the Ops group have a few dozen explicit method definitions, in order to
*signature(e1 = "ddiMatrix", e2="denseMatrix"):Ops组的算术和其他经营者有几十个明确的方法定义,以
/ signature(e1 = "ddiMatrix", e2="denseMatrix"): the result is from class ddiMatrix which is typically very desirable. Note that when e2 contains off-diagonal zeros or NAs, we implicitly use 0 / x = 0, hence
/signature(e1 = "ddiMatrix", e2="denseMatrix"):结果是从类ddiMatrix通常是非常可取的。请注意,当e2包含非对角线零或NA的,我们隐式地使用0 / x = 0,因此
参见----------See Also----------
ddiMatrix and ldiMatrix are “actual” classes extending "diagonalMatrix".
ddiMatrix和ldiMatrix延长"diagonalMatrix"的“实际”类。
举例----------Examples----------
I5 <- Diagonal(5)
D5 <- Diagonal(x = 10*(1:5))
## trivial (but explicitly defined) methods:[#小事(但明确定义)方法:]
stopifnot(identical(crossprod(I5), I5),
identical(tcrossprod(I5), I5),
identical(crossprod(I5, D5), D5),
identical(tcrossprod(D5, I5), D5),
identical(solve(D5), solve(D5, I5)),
all.equal(D5, solve(solve(D5)), tol = 1e-12)
)
solve(D5)# efficient as is diagonal[有效率的是对角线]
# an unusual way to construct a band matrix:[一个不寻常的方式来构造一个带矩阵:]
rbind2(cbind2(I5, D5),
cbind2(D5, I5))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|