dsCMatrix-class(Matrix)
dsCMatrix-class()所属R语言包:Matrix
Numeric Symmetric Sparse (column compressed) Matrices
数字对称稀疏矩阵(列压缩)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The dsCMatrix class is a class of symmetric, sparse numeric matrices in the compressed, column-oriented format. In this implementation the non-zero elements in the columns are sorted into increasing row order.<br> The dsTMatrix class is the class of symmetric, sparse numeric matrices in triplet format.
dsCMatrix类是一类对称,稀疏,面向列的格式压缩的数字矩阵。列中的非零元素,在此实现增加行顺序排序。参考dsTMatrix类是类对称,稀疏三重格式的数字矩阵。
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("dsCMatrix", ...) or new("dsTMatrix", ...) or (for dsCMatrix) also automatically from Matrix(.).
可以通过电话的形式new("dsCMatrix", ...)或new("dsTMatrix", ...)(dsCMatrix)也自动从Matrix(.)创建对象。
插槽----------Slots----------
uplo: A character object indicating if the upper
uplo:一个字符对象表示,如果上层
i: Object of class "integer" of length nnZ (half number of non-zero elements). These are the row
i:Object类的"integer"长度,NNZ(非零元素的一半数量)。这些行
p: (only in class "dsCMatrix" an integer vector for providing pointers, one for each
p:(只在课堂上的"dsCMatrix"integer向量为指针,为每一个
j: (only in class "dsTMatrix" Object of class "integer" of length nnZ (as i). These are the column numbers for each non-zero element in the lower triangle of
j:(只在课堂上"dsTMatrix" Object类的"integer"长度NNZ(i)。这些都是在较低的三角形的每个非零元素的列号
x: Object of class "numeric" of length nnZ –
x:Object类的"numeric"长度NNZ -
factors: Object of class "list" - a list
factors:Object类的"list" - 列表
Dim: Object of class "integer" - the dimensions of the matrix - must be an integer vector with exactly two
Dim"integer" - 矩阵的尺寸 - 必须是一个整数向量正好有两个:对象类
延伸----------Extends----------
Both classes extend classes and symmetricMatrix dsparseMatrix directly; dsCMatrix further directly extends CsparseMatrix, where dsTMatrix does TsparseMatrix.
这两个类扩展类和symmetricMatrixdsparseMatrix直接dsCMatrix进一步直接延伸CsparseMatrix,dsTMatrix不TsparseMatrix。
方法----------Methods----------
solve signature(a = "dsCMatrix", b = "dsparseMatrix"): Solve a linear system of equations defined by x using a Cholesky decomposition. All steps will be based on sparse
解决signature(a = "dsCMatrix", b = "dsparseMatrix"):解决一个定义x使用Cholesky分解的线性方程系统。所有步骤,将基于稀疏
solve signature(a = "dsCMatrix", b = "matrix"): Solve a linear system of equations defined by x using a Cholesky
解决signature(a = "dsCMatrix", b = "matrix"):解决了x使用的Cholesky定义方程的线性系统
chol signature(x = "dsCMatrix", pivot = "logical"): Returns (and stores) the Cholesky decomposition of x, see
哲signature(x = "dsCMatrix", pivot = "logical"):返回(店)x,看到的Cholesky分解
Cholesky signature(A = "dsCMatrix",...): Computes more flexibly Cholesky decompositions,
乔列斯基signature(A = "dsCMatrix",...):计算更灵活的Cholesky分解,
determinant signature(x = "dsCMatrix", logarithm = "missing"): Evaluate the determinant of x on the
的行列式signature(x = "dsCMatrix", logarithm = "missing"):评估x的行列式
determinant signature(x = "dsCMatrix", logarithm = "logical"): Evaluate the determinant of x on the logarithm scale or not, according to the logarithm
行列式signature(x = "dsCMatrix", logarithm = "logical"):评估行列式x对数尺度上,或不按logarithm
t signature(x = "dsCMatrix"): Transpose. As for all symmetric matrices, a matrix for which the upper triangle is stored produces a matrix for which the lower triangle is stored and vice versa, i.e., the uplo slot is swapped, and the row
Tsignature(x = "dsCMatrix"):移调。为所有对称矩阵,存储上三角矩阵产生若对存储下三角矩阵,反之亦然,即uplo插槽交换,该行
t signature(x = "dsTMatrix"): Transpose. The uplo slot is swapped from "U" to "L" or vice
Tsignature(x = "dsTMatrix"):移调。从uplo"U"或副"L"槽交换
coerce signature(from = "dsCMatrix", to = "dgTMatrix")
强制signature(from = "dsCMatrix", to = "dgTMatrix")
coerce signature(from = "dsCMatrix", to = "dgeMatrix")
强制signature(from = "dsCMatrix", to = "dgeMatrix")
coerce signature(from = "dsCMatrix", to = "matrix")
强制signature(from = "dsCMatrix", to = "matrix")
coerce signature(from = "dsTMatrix", to = "dgeMatrix")
强制signature(from = "dsTMatrix", to = "dgeMatrix")
coerce signature(from = "dsTMatrix", to = "dsCMatrix")
强制signature(from = "dsTMatrix", to = "dsCMatrix")
coerce signature(from = "dsTMatrix", to = "dsyMatrix")
强制signature(from = "dsTMatrix", to = "dsyMatrix")
coerce signature(from = "dsTMatrix", to = "matrix")
强制signature(from = "dsTMatrix", to = "matrix")
参见----------See Also----------
Classes dgCMatrix, dgTMatrix, dgeMatrix and those mentioned above.
类dgCMatrix,dgTMatrix,dgeMatrix“的上述。
举例----------Examples----------
mm <- Matrix(toeplitz(c(10, 0, 1, 0, 3)), sparse = TRUE)
mm # automatically dsCMatrix[自动dsCMatrix]
str(mm)
## how would we go from a manually constructed Tsparse* :[从手工建造的Tsparse *#我们将如何去:]
mT <- as(mm, "dgTMatrix")
## Either[#无论]
(symM <- as(mT, "symmetricMatrix"))# dsT[dst的]
(symC <- as(symM, "CsparseMatrix"))# dsC[DSC]
## or[#或]
sC <- Matrix(mT, sparse=TRUE, forceCheck=TRUE)
sym2 <- as(symC, "TsparseMatrix")
## --> the same as 'symM', a "dsTMatrix"[# - >“SYMM相同,”dsTMatrix“]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|