找回密码
 注册
查看: 2907|回复: 0

R语言:dtCMatrix-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 20:50:06 | 显示全部楼层 |阅读模式
dtCMatrix-class(Matrix)
dtCMatrix-class()所属R语言包:Matrix

                                        Triangular, (compressed) sparse column matrices
                                         三角形,稀疏列矩阵(压缩)

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

The "dtCMatrix" class is a class of triangular, sparse matrices in the compressed, column-oriented format.  In this implementation the non-zero elements in the columns are sorted into increasing row order.  The "dtTMatrix" class is a class of
"dtCMatrix"类是一类三角形,稀疏矩阵的压缩,面向列的格式。在此实现在列的非零元素增加行顺序排序。 "dtTMatrix"类是一类


类的对象----------Objects from the Class----------

Objects can be created by calls of the form new("dtCMatrix",     ...) or calls of the form  new("dtTMatrix", ...), but more typically automatically via Matrix() or coercion such as as(x, "dtCMatrix").
对象可以创建形式new("dtCMatrix",     ...)或形式new("dtTMatrix", ...)的电话呼叫,但通常会自动通过Matrix()如as(x, "dtCMatrix")胁迫。


插槽----------Slots----------




uplo: Object of class "character". Must be
uplo类"character"的对象。必须




diag: Object of class "character". Must be either "U", for unit triangular (diagonal is all ones), or
diag类"character"的对象。必须是"U"(是对角线的)为单元的三角形,或




p: (only present in "dtCMatrix" an integer vector for providing pointers, one for each
p:(只"dtCMatrix"integer为指针,为每一个向量




i: Object of class "integer" of length nnzero (number of non-zero elements).  These are the row numbers for
i:Object类的"integer"长度nnzero的(非零元素的数目)。这些行号




j: Object of class "integer" of length nnzero (number of non-zero elements).  These are the column numbers for each non-zero element in the matrix. (Only present in the
j:Object类的"integer"长度nnzero的(非零元素的数目)。这些是每个矩阵中非零元素的列号。 (只有在目前的




x: Object of class "numeric" - the non-zero
x类"numeric"对象 - 非零




Dim,Dimnames: The dimension (a length-2 "integer") and corresponding names (or NULL),
Dim,Dimnames:尺寸(长度-2"integer")和(或NULL)相应的名称,


延伸----------Extends----------

Class "dgCMatrix", directly. Class "triangularMatrix", directly. Class "dMatrix", "sparseMatrix", and more by class "dgCMatrix" etc, see the examples.
类"dgCMatrix",直接。类"triangularMatrix",直接。类"dMatrix","sparseMatrix",多类"dgCMatrix"等,看到的例子。


方法----------Methods----------




coerce signature(from = "dtCMatrix", to = "dgTMatrix")
强制signature(from = "dtCMatrix", to = "dgTMatrix")




coerce signature(from = "dtCMatrix", to = "dgeMatrix")
强制signature(from = "dtCMatrix", to = "dgeMatrix")




coerce signature(from = "dtTMatrix", to = "dgeMatrix")
强制signature(from = "dtTMatrix", to = "dgeMatrix")




coerce signature(from = "dtTMatrix", to = "dtrMatrix")
强制signature(from = "dtTMatrix", to = "dtrMatrix")




coerce signature(from = "dtTMatrix", to = "matrix")
强制signature(from = "dtTMatrix", to = "matrix")




solve signature(a = "dtCMatrix", b = "matrix")
解决signature(a = "dtCMatrix", b = "matrix")




solve signature(a = "dtCMatrix", b = "dgeMatrix")
解决signature(a = "dtCMatrix", b = "dgeMatrix")




solve signature(a = "dtCMatrix", b = "missing")
解决signature(a = "dtCMatrix", b = "missing")




solve signature(a = "dtCMatrix", b = "numeric")
解决signature(a = "dtCMatrix", b = "numeric")




solve signature(a = "dtCMatrix", b = "CsparseMatrix"): fully sparse triangular solve, in traditional S/R\ aka
解决signature(a = "dtCMatrix", b = "CsparseMatrix"):充分稀疏的三角解决传统的S / R \又名




t signature(x = "dtCMatrix"): returns the transpose of
Tsignature(x = "dtCMatrix"):返回的转




t signature(x = "dtTMatrix"): returns the transpose of
Tsignature(x = "dtTMatrix"):返回的转


参见----------See Also----------

Classes dgCMatrix, dgTMatrix, dgeMatrix, and dtrMatrix.
类dgCMatrix,dgTMatrix,dgeMatrix,dtrMatrix。


举例----------Examples----------


showClass("dtCMatrix")

showClass("dtTMatrix")
t1 <- new("dtTMatrix", x= c(3,7), i= 0:1, j=3:2, Dim= as.integer(c(4,4)))
t1
## from  0-diagonal to unit-diagonal {low-level step}:[#从0对角线单位对角线{低级别的一步}:]
tu <- t1 ; tu@diag <- "U"
tu
(cu <- as(tu, "dtCMatrix"))
str(cu)# only two entries in @i and @x[@我和@ x的只有两个条目]
stopifnot(cu@i == 1:0,
          all(2 * symmpart(cu) == Diagonal(4) + forceSymmetric(cu)))

t1[1,2:3] <- -1:-2
diag(t1) <- 10*c(1:2,3:2)
t1 # still triangular[还是三角]
(it1 <- solve(t1))
t1. <- solve(it1)
all(abs(t1 - t1.) < 10 * .Machine$double.eps)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-1-24 05:32 , Processed in 0.024845 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表