| 1833 |
maechler |
1 |
\name{CsparseMatrix-class}
|
|
|
2 |
\docType{class}
|
|
|
3 |
\alias{CsparseMatrix-class}
|
| 2022 |
bates |
4 |
\alias{\%*\%,CsparseMatrix,CsparseMatrix-method}
|
| 3517 |
bates |
5 |
\alias{\%*\%,CsparseMatrix,ddenseMatrix-method}
|
| 3405 |
bates |
6 |
\alias{\%*\%,CsparseMatrix,matrix-method}
|
| 3517 |
bates |
7 |
\alias{\%*\%,CsparseMatrix,numeric-method}
|
| 3520 |
bates |
8 |
\alias{\%*\%,ddenseMatrix,CsparseMatrix-method}
|
| 3517 |
bates |
9 |
\alias{\%*\%,matrix,CsparseMatrix-method}
|
|
|
10 |
\alias{\%*\%,numeric,CsparseMatrix-method}
|
| 3413 |
maechler |
11 |
\alias{coerce,CsparseMatrix,lsparseMatrix-method}
|
| 2022 |
bates |
12 |
\alias{coerce,CsparseMatrix,TsparseMatrix-method}
|
|
|
13 |
\alias{coerce,CsparseMatrix,denseMatrix-method}
|
| 3403 |
bates |
14 |
\alias{coerce,CsparseMatrix,matrix-method}
|
| 3517 |
bates |
15 |
\alias{coerce,matrix,CsparseMatrix-method}
|
|
|
16 |
\alias{coerce,numeric,CsparseMatrix-method}
|
| 1833 |
maechler |
17 |
\alias{crossprod,CsparseMatrix,missing-method}
|
| 3517 |
bates |
18 |
\alias{crossprod,CsparseMatrix,ddenseMatrix-method}
|
| 3403 |
bates |
19 |
\alias{crossprod,CsparseMatrix,matrix-method}
|
| 3517 |
bates |
20 |
\alias{crossprod,CsparseMatrix,numeric-method}
|
| 3405 |
bates |
21 |
\alias{diag,CsparseMatrix-method}
|
| 1833 |
maechler |
22 |
\alias{t,CsparseMatrix-method}
|
| 2059 |
maechler |
23 |
\alias{tcrossprod,CsparseMatrix,missing-method}
|
| 3218 |
maechler |
24 |
\alias{colMeans,CsparseMatrix-method}
|
|
|
25 |
\alias{colSums,CsparseMatrix-method}
|
|
|
26 |
\alias{rowMeans,CsparseMatrix-method}
|
|
|
27 |
\alias{rowSums,CsparseMatrix-method}
|
| 3534 |
maechler |
28 |
%% Group methods --------- FIXME: not tested yet (or documented)
|
|
|
29 |
\alias{Arith,CsparseMatrix,CsparseMatrix-method}
|
|
|
30 |
\alias{Arith,CsparseMatrix,numeric-method}
|
| 3340 |
maechler |
31 |
\alias{Arith,numeric,CsparseMatrix-method}
|
|
|
32 |
\alias{Math,CsparseMatrix-method}
|
|
|
33 |
%
|
| 1833 |
maechler |
34 |
\title{Class "CsparseMatrix" of Sparse Matrices in Column-compressed Form}
|
|
|
35 |
\description{The \code{"CsparseMatrix"} class is the virtual class of
|
|
|
36 |
all sparse matrices coded in sorted compressed column-oriented form.
|
|
|
37 |
Since it is a virtual class, no objects may be created from it. See
|
|
|
38 |
\code{showClass("CsparseMatrix")} for its subclasses.
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
\section{Slots}{
|
|
|
42 |
\describe{
|
|
|
43 |
\item{\code{i}:}{Object of class \code{"integer"} of length nnzero
|
| 3338 |
maechler |
44 |
(number of non-zero elements). These are the \emph{0-based} row numbers for
|
|
|
45 |
each non-zero element in the matrix, i.e., \code{i} must be in
|
|
|
46 |
\code{0:(nrow(.)-1)}}.
|
|
|
47 |
\item{\code{p}:}{Object of class \code{"integer"} for providing pointers, one
|
| 1833 |
maechler |
48 |
for each column, to the initial (zero-based) index of elements in
|
| 3338 |
maechler |
49 |
the column. \code{.@p} is of length \code{ncol(.) + 1}, with
|
|
|
50 |
\code{p[1] == 0} and \code{p[length(p)] == nnzero}, such that in
|
|
|
51 |
fact, \code{diff(.@p + 1)} are the number of non-zero elements for
|
|
|
52 |
each column.}
|
| 1833 |
maechler |
53 |
\item{\code{factors}, \code{Dim}, \code{Dimnames}:}{inherited from
|
| 3175 |
maechler |
54 |
the superclass, see the \code{\linkS4class{sparseMatrix}} class.}
|
| 1833 |
maechler |
55 |
}
|
|
|
56 |
}
|
|
|
57 |
\section{Extends}{
|
|
|
58 |
Class \code{"sparseMatrix"}, directly.
|
|
|
59 |
Class \code{"Matrix"}, by class \code{"sparseMatrix"}.
|
|
|
60 |
}
|
|
|
61 |
\section{Methods}{
|
| 3413 |
maechler |
62 |
\describe{%% The following is generated by promptClass(..) --
|
|
|
63 |
%% FIXME: write a script that update all the *-class.Rd files
|
|
|
64 |
\item{Arith}{\code{signature(e1 = "CsparseMatrix", e2 = "numeric")}: ... }
|
|
|
65 |
\item{Arith}{\code{signature(e1 = "numeric", e2 = "CsparseMatrix")}: ... }
|
|
|
66 |
\item{Math}{\code{signature(x = "CsparseMatrix")}: ... }
|
|
|
67 |
|
|
|
68 |
\item{band}{\code{signature(x = "CsparseMatrix")}: ... }
|
|
|
69 |
\item{-}{\code{signature(e1 = "CsparseMatrix", e2 = "numeric")}: ... }
|
|
|
70 |
\item{-}{\code{signature(e1 = "numeric", e2 = "CsparseMatrix")}: ... }
|
|
|
71 |
\item{[<-}{\code{signature(x = "CsparseMatrix", i = "index", j = "missing", value = "replValue")}: ... }
|
|
|
72 |
\item{[<-}{\code{signature(x = "CsparseMatrix", i = "index", j = "index", value = "replValue")}: ... }
|
|
|
73 |
\item{[<-}{\code{signature(x = "CsparseMatrix", i = "missing", j = "index", value = "replValue")}: ... }
|
|
|
74 |
\item{\%*\%}{\code{signature(x = "CsparseMatrix", y = "CsparseMatrix")}: ... }
|
|
|
75 |
\item{\%*\%}{\code{signature(x = "CsparseMatrix", y = "denseMatrix")}: ... }
|
|
|
76 |
\item{\%*\%}{\code{signature(x = "CsparseMatrix", y = "matrix")}: ... }
|
|
|
77 |
\item{+}{\code{signature(e1 = "CsparseMatrix", e2 = "numeric")}: ... }
|
|
|
78 |
\item{+}{\code{signature(e1 = "numeric", e2 = "CsparseMatrix")}: ... }
|
|
|
79 |
\item{coerce}{\code{signature(from = "CsparseMatrix", to = "TsparseMatrix")}: ... }
|
|
|
80 |
\item{coerce}{\code{signature(from = "CsparseMatrix", to = "denseMatrix")}: ... }
|
|
|
81 |
\item{coerce}{\code{signature(from = "CsparseMatrix", to = "matrix")}: ... }
|
|
|
82 |
\item{coerce}{\code{signature(from = "CsparseMatrix", to = "lsparseMatrix")}: ... }
|
|
|
83 |
\item{coerce}{\code{signature(from = "TsparseMatrix", to = "CsparseMatrix")}: ... }
|
|
|
84 |
\item{coerce}{\code{signature(from = "denseMatrix", to = "CsparseMatrix")}: ... }
|
|
|
85 |
\item{colMeans}{\code{signature(x = "CsparseMatrix")}: ... }
|
|
|
86 |
\item{colSums}{\code{signature(x = "CsparseMatrix")}: ... }
|
| 1833 |
maechler |
87 |
\item{crossprod}{\code{signature(x = "CsparseMatrix", y = "missing")}: ... }
|
| 3413 |
maechler |
88 |
\item{crossprod}{\code{signature(x = "CsparseMatrix", y = "dgeMatrix")}: ... }
|
|
|
89 |
\item{crossprod}{\code{signature(x = "CsparseMatrix", y = "matrix")}: ... }
|
| 3405 |
bates |
90 |
\item{diag}{\code{signature(x = "CsparseMatrix")}: ... }
|
| 3413 |
maechler |
91 |
\item{gamma}{\code{signature(x = "CsparseMatrix")}: ... }
|
|
|
92 |
\item{lgamma}{\code{signature(x = "CsparseMatrix")}: ... }
|
|
|
93 |
\item{log}{\code{signature(x = "CsparseMatrix")}: ... }
|
|
|
94 |
\item{rowMeans}{\code{signature(x = "CsparseMatrix")}: ... }
|
|
|
95 |
\item{rowSums}{\code{signature(x = "CsparseMatrix")}: ... }
|
| 1833 |
maechler |
96 |
\item{t}{\code{signature(x = "CsparseMatrix")}: ... }
|
| 2059 |
maechler |
97 |
\item{tcrossprod}{\code{signature(x = "CsparseMatrix", y = "missing")}: ... }
|
| 3413 |
maechler |
98 |
\item{tril}{\code{signature(x = "CsparseMatrix")}: ... }
|
|
|
99 |
\item{triu}{\code{signature(x = "CsparseMatrix")}: ... }
|
| 1833 |
maechler |
100 |
}
|
|
|
101 |
}
|
|
|
102 |
\seealso{
|
| 3175 |
maechler |
103 |
its superclass, \code{\linkS4class{sparseMatrix}}, and, e.g.,
|
|
|
104 |
class \code{\linkS4class{dgCMatrix}} for the links to other classes.
|
| 1833 |
maechler |
105 |
}
|
|
|
106 |
\examples{
|
|
|
107 |
showClass("CsparseMatrix")
|
|
|
108 |
}
|
|
|
109 |
\keyword{classes}
|