The R Project SVN R-packages

Rev

Rev 4032 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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}
3755 maechler 12
\alias{coerce,CsparseMatrix,nsparseMatrix-method}
2022 bates 13
\alias{coerce,CsparseMatrix,TsparseMatrix-method}
14
\alias{coerce,CsparseMatrix,denseMatrix-method}
3403 bates 15
\alias{coerce,CsparseMatrix,matrix-method}
3517 bates 16
\alias{coerce,matrix,CsparseMatrix-method}
17
\alias{coerce,numeric,CsparseMatrix-method}
1833 maechler 18
\alias{crossprod,CsparseMatrix,missing-method}
3940 bates 19
\alias{crossprod,CsparseMatrix,CsparseMatrix-method}
3517 bates 20
\alias{crossprod,CsparseMatrix,ddenseMatrix-method}
3403 bates 21
\alias{crossprod,CsparseMatrix,matrix-method}
3517 bates 22
\alias{crossprod,CsparseMatrix,numeric-method}
3405 bates 23
\alias{diag,CsparseMatrix-method}
1833 maechler 24
\alias{t,CsparseMatrix-method}
3943 maechler 25
\alias{tcrossprod,CsparseMatrix,CsparseMatrix-method}
2059 maechler 26
\alias{tcrossprod,CsparseMatrix,missing-method}
3534 maechler 27
%% Group methods --------- FIXME: not tested yet (or documented)
28
\alias{Arith,CsparseMatrix,CsparseMatrix-method}
29
\alias{Arith,CsparseMatrix,numeric-method}
3340 maechler 30
\alias{Arith,numeric,CsparseMatrix-method}
4032 maechler 31
\alias{Compare,CsparseMatrix,CsparseMatrix-method}
3340 maechler 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")}: ... }
3755 maechler 83
    \item{coerce}{\code{signature(from = "CsparseMatrix", to = "nsparseMatrix")}: ... }
3413 maechler 84
    \item{coerce}{\code{signature(from = "TsparseMatrix", to = "CsparseMatrix")}: ... }
85
    \item{coerce}{\code{signature(from = "denseMatrix", to = "CsparseMatrix")}: ... }
3943 maechler 86
    \item{crossprod}{\code{signature(x = "CsparseMatrix", y = "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")}: ... }
1833 maechler 94
    \item{t}{\code{signature(x = "CsparseMatrix")}: ... }
3943 maechler 95
    \item{tcrossprod}{\code{signature(x = "CsparseMatrix", y = "CsparseMatrix")}: ... }
2059 maechler 96
    \item{tcrossprod}{\code{signature(x = "CsparseMatrix", y = "missing")}: ... }
3413 maechler 97
    \item{tril}{\code{signature(x = "CsparseMatrix")}: ... }
98
    \item{triu}{\code{signature(x = "CsparseMatrix")}: ... }
1833 maechler 99
  }
100
}
101
\seealso{
4483 maechler 102
  \code{\link{colSums}}, \code{\link{kronecker}}, and other such methods
103
  with own help pages.
104
 
105
  Further, the super class of \code{CsparseMatrix},
106
  \code{\linkS4class{sparseMatrix}}, and, e.g.,
3175 maechler 107
  class \code{\linkS4class{dgCMatrix}} for the links to other classes.
1833 maechler 108
}
109
\examples{
110
showClass("CsparseMatrix")
111
}
112
\keyword{classes}