triangularMatrix-class(Matrix)
triangularMatrix-class()所属R语言包:Matrix
Virtual Class of Triangular Matrices in package:Matrix
包三角矩阵:矩阵的虚拟教室
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The virtual class of triangular matrices,"triangularMatrix", from the package Matrix contains numeric and logical, dense and sparse matrices, e.g., see the examples.
三角矩阵的虚拟课堂,"triangularMatrix",从包Matrix包含数字和逻辑,密集和稀疏矩阵,例如,看到的例子。
The main use will be in methods (and C functions) that can deal with all triangular matrices.
主要用途将是在方法(C函数),可以处理所有的三角矩阵。
插槽----------Slots----------
uplo: String (of class "character"). Must be
uplo:字符串(类"character")。必须
diag: String (of class "character"). Must be either "U", for unit triangular (diagonal is all ones), or "N" for non-unit. The diagonal elements are not accessed internally when diag is "U". For denseMatrix classes, they need to be allocated though, i.e., the length of the x slot does not
diag:字符串(类"character")。必须要么"U",单元三角形(对角线是所有的),或"N"非单位。对角线上的元素没有内部访问时diag是"U"。 denseMatrix类,尽管他们需要分配,即x槽的长度不
Dim, Dimnames: The dimension (a length-2 "integer") and corresponding names (or NULL),
Dim,Dimnames:尺寸(长度-2"integer")和(或NULL)相应的名称,
延伸----------Extends----------
Class "Matrix", directly.
类"Matrix",直接。
方法----------Methods----------
There's a C function triangularMatrix_validity() called by the internal validity checking functions.
还有一个C函数triangularMatrix_validity()称为内部有效性检查功能。
Currently, Schur, isSymmetric and as() (i.e. coerce) have methods with triangularMatrix in their signature.
目前,Schur,isSymmetric和as()(即coerce)有triangularMatrix在其签名的方法。
参见----------See Also----------
Classes symmetricMatrix, and, e.g., dtrMatrix for numeric dense matrices, or ltCMatrix for a logical sparse matrix subclass of "triangularMatrix".
类symmetricMatrix,,例如,dtrMatrixltCMatrix的数字密集矩阵,或逻辑"triangularMatrix"的稀疏矩阵的子类。
举例----------Examples----------
showClass("triangularMatrix")
## The names of direct subclasses:[#直接子类的名称:]
scl <- getClass("triangularMatrix")@subclasses
directly <- sapply(lapply(scl, slot, "by"), length) == 0
names(scl)[directly]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|