nMatrix-class(Matrix)
nMatrix-class()所属R语言包:Matrix
Class "nMatrix" of Non-zero Pattern Matrices
类的“nMatrix”非零模式矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The nMatrix class is the virtual “mother” class of all non-zero pattern (or simply pattern) matrices in the Matrix package.
nMatrix类是虚拟的“母亲”的所有非零模式(简单模式)Matrix包中的矩阵类。
插槽----------Slots----------
Common to all matrix object in the package:
常见的包中所有的矩阵对象:
Dim: Object of class "integer" - the dimensions of the matrix - must be an integer vector with exactly two
Dim"integer" - 矩阵的尺寸 - 必须是一个整数向量正好有两个:对象类
Dimnames: list of length two; each component containing NULL or a character vector length
Dimnames:长度为二的名单;每个组件包含NULL或一个character向量的长度
方法----------Methods----------
There is a bunch of coercion methods (for as(..)), e.g.,
有一堆的胁迫方法(as(..)),例如,
coerce signature(from = "nMatrix", to = "matrix"): ...
要挟signature(from = "nMatrix", to = "matrix")...
coerce signature(from = "nMatrix", to = "dMatrix"): ...
要挟signature(from = "nMatrix", to = "dMatrix")...
coerce signature(from = "nMatrix", to = "lMatrix"): ...
要挟signature(from = "nMatrix", to = "lMatrix")...
coerce signature(from = "matrix", to = "nMatrix"): Note that these coercions (must) coerce NAs to non-zero, hence conceptually TRUE. This is particularly important when sparseMatrix objects are coerced to "nMatrix" and hence to nsparseMatrix.
强制signature(from = "matrix", to = "nMatrix"):注意,这些强制(必须)强迫NA的非零,因此概念TRUE。强制sparseMatrix,因此"nMatrix"nsparseMatrix对象时,这一点尤为重要。
coerce signature(from = "dMatrix", to = "nMatrix"): ...
要挟signature(from = "dMatrix", to = "nMatrix")...
coerce signature(from = "lMatrix", to = "nMatrix"): ...
要挟signature(from = "lMatrix", to = "nMatrix")...
. Additional methods contain group mehods, such as
。其他方法包含组如mehods,
Ops signature(e1 = "nMatrix", e2 = "...."), ...
OPSsignature(e1 = "nMatrix", e2 = "...."),...
Arith signature(e1 = "nMatrix", e2 = "...."), ...
arithsignature(e1 = "nMatrix", e2 = "...."),...
Compare signature(e1 = "nMatrix", e2 = "...."), ...
比较signature(e1 = "nMatrix", e2 = "...."),...
Logic signature(e1 = "nMatrix", e2 = "...."), ...
逻辑signature(e1 = "nMatrix", e2 = "...."),...
Summary signature(x = "nMatrix", "...."), ...
摘要signature(x = "nMatrix", "...."),...
参见----------See Also----------
The classes lMatrix, nsparseMatrix, and the mother class, Matrix.
类lMatrix,:nsparseMatrix,和母亲类,Matrix。
举例----------Examples----------
getClass("nMatrix")
L3 <- Matrix(upper.tri(diag(3)))
L3 # an "ltCMatrix"[“ltCMatrix”]
as(L3, "nMatrix") # -> ntC*[ - > NTC *]
## similar, not using Matrix()[#类似,不使用矩阵()]
as(upper.tri(diag(3)), "nMatrix")# currently "ngTMatrix"[目前“ngTMatrix”]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|