dtRMatrix-class-def(Matrix)
dtRMatrix-class-def()所属R语言包:Matrix
Triangular Sparse Compressed Row Matrices
三角稀疏压缩行矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The dtRMatrix class is a class of triangular, sparse matrices in the compressed, row-oriented format. In this implementation the non-zero elements in the rows are sorted into increasing columnd order.
dtRMatrix类是一个类三角形,稀疏矩阵的压缩,面向行的格式。在此实现行非零元素的将增加columnd顺序排序。
类的对象----------Objects from the Class----------
This class is currently still mostly unimplemented!
这个类目前仍大多未实现!
Objects can be created by calls of the form new("dtRMatrix", ...).
创建对象可以通过电话的形式new("dtRMatrix", ...)。
插槽----------Slots----------
uplo: Object of class "character". Must be either "U", for upper triangular, and "L", for lower triangular.
uplo类"character"的对象。必须是“U”型,上三角和“L”,为下三角。
diag: Object of class "character". Must be either "U", for unit triangular (diagonal is all ones), or
diag类"character"的对象。必须是"U"(是对角线的)为单元的三角形,或
j: Object of class "integer" of length nnzero(.) (number of non-zero elements). These are
j:对象类"integer"长度nnzero(.)(非零元素的数目)。这些都是
p: Object of class "integer" of pointers, one for each row, to the initial (zero-based) index of elements in
p:Object类的"integer"指针,每行一个,初始(从零开始)元素的索引
x: Object of class "numeric" - the non-zero
x类"numeric"对象 - 非零
Dim: The dimension (a length-2 "integer")
Dim:尺寸(长度2"integer")
Dimnames: corresponding names (or NULL),
Dimnames(或NULL)相应的名称,
延伸----------Extends----------
Class "dgRMatrix", directly. Class "dsparseMatrix", by class "dgRMatrix". Class "dMatrix", by class "dgRMatrix". Class "sparseMatrix", by class "dgRMatrix". Class "Matrix", by class "dgRMatrix".
类"dgRMatrix",直接。类"dsparseMatrix"类"dgRMatrix"。类"dMatrix"类"dgRMatrix"。类"sparseMatrix"类"dgRMatrix"。类"Matrix"类"dgRMatrix"。
方法----------Methods----------
No methods currently with class "dsRMatrix" in the signature.
类的“dsRMatrix”签名目前没有任何方法。
参见----------See Also----------
Classes dgCMatrix, dgTMatrix, dgeMatrix
类dgCMatrix,dgTMatrix,dgeMatrix
举例----------Examples----------
(m0 <- new("dtRMatrix"))
(m2 <- new("dtRMatrix", Dim = c(2L,2L),
x = c(5, 1:2), p = c(0L,2:3), j= c(0:1,1L)))
str(m2)
(m3 <- as(Diagonal(2), "RsparseMatrix"))# --> dtRMatrix[ - > dtRMatrix]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|