CsparseMatrix-class(Matrix)
CsparseMatrix-class()所属R语言包:Matrix
Class "CsparseMatrix" of Sparse Matrices in Column-compressed Form
列压缩格式的稀疏矩阵类“CsparseMatrix”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The "CsparseMatrix" class is the virtual class of all sparse matrices coded in sorted compressed column-oriented form. Since it is a virtual class, no objects may be created from it. See showClass("CsparseMatrix") for its subclasses.
"CsparseMatrix"类是虚拟类的所有稀疏矩阵排序压缩面向列的形式编码。因为它是一个虚拟的类,没有对象可以从它创建。看到showClass("CsparseMatrix")它的子类。
插槽----------Slots----------
i: Object of class "integer" of length nnzero (number of non-zero elements). These are the 0-based row numbers for each non-zero element in the matrix, i.e., i must be in
i:Object类的"integer"长度nnzero的(非零元素的数目)。这些都是每个非零元素的行矩阵,即数字0,i必须在
.
。
p: integer vector for providing pointers, one for each column, to the initial (zero-based) index of elements in the column. .@p is of length ncol(.) + 1, with p[1] == 0 and p[length(p)] == nnzero, such that in fact, diff(.@p) are the number of non-zero elements for each column.
p:integer初始(从零开始)元素的索引为指针,每列,在列向量。 .@p长度ncol(.) + 1,p[1] == 0和p[length(p)] == nnzero“,事实上,diff(.@p)为每列非零元素的数目。
In other words, m@p[1:ncol(m)] contains the indices of those elements in m@x that are the first elements in the respective column of m.
换句话说,m@p[1:ncol(m)]包含这些元素的指数在m@x是在m的相应列的第一要素。
Dim, Dimnames: inherited from
Dim,Dimnames:继承
延伸----------Extends----------
Class "sparseMatrix", directly. Class "Matrix", by class "sparseMatrix".
类"sparseMatrix",直接。类"Matrix"类"sparseMatrix"。
方法----------Methods----------
Arith signature(e1 = "CsparseMatrix", e2 = "numeric"): ...
arithsignature(e1 = "CsparseMatrix", e2 = "numeric")...
Arith signature(e1 = "numeric", e2 = "CsparseMatrix"): ...
arithsignature(e1 = "numeric", e2 = "CsparseMatrix")...
Math signature(x = "CsparseMatrix"): ...
数学signature(x = "CsparseMatrix"):...
band signature(x = "CsparseMatrix"): ...
带signature(x = "CsparseMatrix"):...
- signature(e1 = "CsparseMatrix", e2 = "numeric"): ...
- signature(e1 = "CsparseMatrix", e2 = "numeric")...
- signature(e1 = "numeric", e2 = "CsparseMatrix"): ...
- signature(e1 = "numeric", e2 = "CsparseMatrix")...
[<- signature(x = "CsparseMatrix", i = "index", j = "missing", value = "replValue"): ...
[< - signature(x = "CsparseMatrix", i = "index", j = "missing", value = "replValue")...
[<- signature(x = "CsparseMatrix", i = "index", j = "index", value = "replValue"): ...
[< - signature(x = "CsparseMatrix", i = "index", j = "index", value = "replValue")...
[<- signature(x = "CsparseMatrix", i = "missing", j = "index", value = "replValue"): ...
[< - signature(x = "CsparseMatrix", i = "missing", j = "index", value = "replValue")...
%*% signature(x = "CsparseMatrix", y = "CsparseMatrix"): ...
%*%signature(x = "CsparseMatrix", y = "CsparseMatrix")...
%*% signature(x = "CsparseMatrix", y = "denseMatrix"): ...
%*%signature(x = "CsparseMatrix", y = "denseMatrix")...
%*% signature(x = "CsparseMatrix", y = "matrix"): ...
%*%signature(x = "CsparseMatrix", y = "matrix")...
+ signature(e1 = "CsparseMatrix", e2 = "numeric"): ...
+signature(e1 = "CsparseMatrix", e2 = "numeric")...
+ signature(e1 = "numeric", e2 = "CsparseMatrix"): ...
+signature(e1 = "numeric", e2 = "CsparseMatrix")...
coerce signature(from = "CsparseMatrix", to = "TsparseMatrix"): ...
要挟signature(from = "CsparseMatrix", to = "TsparseMatrix")...
coerce signature(from = "CsparseMatrix", to = "denseMatrix"): ...
要挟signature(from = "CsparseMatrix", to = "denseMatrix")...
coerce signature(from = "CsparseMatrix", to = "matrix"): ...
要挟signature(from = "CsparseMatrix", to = "matrix")...
coerce signature(from = "CsparseMatrix", to = "lsparseMatrix"): ...
要挟signature(from = "CsparseMatrix", to = "lsparseMatrix")...
coerce signature(from = "CsparseMatrix", to = "nsparseMatrix"): ...
要挟signature(from = "CsparseMatrix", to = "nsparseMatrix")...
coerce signature(from = "TsparseMatrix", to = "CsparseMatrix"): ...
要挟signature(from = "TsparseMatrix", to = "CsparseMatrix")...
coerce signature(from = "denseMatrix", to = "CsparseMatrix"): ...
要挟signature(from = "denseMatrix", to = "CsparseMatrix")...
crossprod signature(x = "CsparseMatrix", y = "CsparseMatrix"): ...
crossprodsignature(x = "CsparseMatrix", y = "CsparseMatrix")...
crossprod signature(x = "CsparseMatrix", y = "missing"): ...
crossprodsignature(x = "CsparseMatrix", y = "missing")...
crossprod signature(x = "CsparseMatrix", y = "dgeMatrix"): ...
crossprodsignature(x = "CsparseMatrix", y = "dgeMatrix")...
crossprod signature(x = "CsparseMatrix", y = "matrix"): ...
crossprodsignature(x = "CsparseMatrix", y = "matrix")...
diag signature(x = "CsparseMatrix"): ...
诊断signature(x = "CsparseMatrix")...
gamma signature(x = "CsparseMatrix"): ...
的伽玛signature(x = "CsparseMatrix"):...
lgamma signature(x = "CsparseMatrix"): ...
lgammasignature(x = "CsparseMatrix")...
log signature(x = "CsparseMatrix"): ...
登录signature(x = "CsparseMatrix"):...
t signature(x = "CsparseMatrix"): ...
Tsignature(x = "CsparseMatrix")...
tcrossprod signature(x = "CsparseMatrix", y = "CsparseMatrix"): ...
tcrossprodsignature(x = "CsparseMatrix", y = "CsparseMatrix")...
tcrossprod signature(x = "CsparseMatrix", y = "missing"): ...
tcrossprodsignature(x = "CsparseMatrix", y = "missing")...
tril signature(x = "CsparseMatrix"): ...
万亿signature(x = "CsparseMatrix")...
triu signature(x = "CsparseMatrix"): ...
triusignature(x = "CsparseMatrix")...
注意----------Note----------
All classes extending CsparseMatrix have a common validity (see validObject) check function. That function additionally checks the i slot for each column to contain increasing row numbers. <br> In earlier versions of Matrix (<= 0.999375-16), validObject automatically re-sorted the entries when necessary, and hence new() calls with somewhat permuted i and x slots worked, as new(...) (with slot arguments) automatically checks the validity.
所有类别延伸CsparseMatrix有一个共同的有效性(见validObject)检查功能。此外,该函数检查每一列包含行数增加i插槽。在Matrix(<= 0.999375-16)validObject自动重新排序项必要时,并因此new()有点置换i呼吁早期版本的参考x槽工作,new(...)(槽参数)自动检查的有效性。
Now, you have to use sparseMatrix to achieve the same functionality or know how to use .validateCsparse() to do so.
现在,你必须使用sparseMatrix实现相同的功能,或不知道如何使用.validateCsparse()这样做。
参见----------See Also----------
colSums, kronecker, and other such methods with own help pages.
colSums,kronecker,和其他类似的方法,用自己的帮助页面。
Further, the super class of CsparseMatrix, sparseMatrix, and, e.g., class dgCMatrix for the links to other classes.
此外,超一流的CsparseMatrix,sparseMatrix,,例如,类dgCMatrix为其他类的链接。
举例----------Examples----------
getClass("CsparseMatrix")
## The common validity check function (based on C code):[#常见的合法性检查功能(基于C代码):]
getValidity(getClass("CsparseMatrix"))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|