SCM

SCM Repository

[matrix] Annotation of /pkg/man/dgTMatrix-class.Rd
ViewVC logotype

Annotation of /pkg/man/dgTMatrix-class.Rd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 481 - (view) (download) (as text)

1 : bates 480 \name{dgTMatrix-class}
2 : bates 10 \docType{class}
3 : bates 480 \alias{dgTMatrix-class}
4 :     \alias{+,dgTMatrix,dgTMatrix-method}
5 :     \alias{coerce,dgTMatrix,dgeMatrix-method}
6 :     \alias{coerce,dgTMatrix,matrix-method}
7 :     \alias{coerce,dgTMatrix,dgCMatrix-method}
8 :     \alias{coerce,dgTMatrix,dsCMatrix-method}
9 :     \alias{image,dgTMatrix-method}
10 :     \alias{t,dgTMatrix-method}
11 :     \title{Class "dgTMatrix" sparse matrices in triplet form}
12 :     \description{The \code{"dgTMatrix"} class is the class of sparse
13 : bates 10 matrices stored as (possibly redundant) triplets.}
14 :     \section{Objects from the Class}{
15 : bates 480 Objects can be created by calls of the form \code{new("dgTMatrix", ...)}.
16 : bates 10 }
17 :     \section{Slots}{
18 :     \describe{
19 :     \item{\code{i}:}{Object of class \code{"integer"} - the row indices
20 :     of non-zero entries.}
21 :     \item{\code{j}:}{Object of class \code{"integer"} - the column
22 :     indices of non-zero entries. Must be the same length as slot \code{i}.}
23 :     \item{\code{x}:}{Object of class \code{"numeric"} - the (non-zero)
24 :     entry at position \code{(i,j)}. Must be the same length as slot
25 :     \code{i}. If an index pair occurs more than once the corresponding
26 :     values of slot \code{x} are added to form the element of the matrix.}
27 :     \item{\code{Dim}:}{Object of class \code{"integer"} of length 2 -
28 :     the dimensions of the matrix.}
29 :     }
30 :     }
31 :     \section{Methods}{
32 :     \describe{
33 : bates 480 \item{+}{\code{signature(e1 = "dgTMatrix", e2 = "dgTMatrix")}}
34 :     \item{coerce}{\code{signature(from = "dgTMatrix", to = "dgCMatrix")}}
35 :     \item{coerce}{\code{signature(from = "dgTMatrix", to = "dgeMatrix")}}
36 :     \item{coerce}{\code{signature(from = "dgTMatrix", to = "matrix")}}
37 :     \item{coerce}{\code{signature(from = "dgTMatrix", to = "dsCMatrix")}}
38 :     \item{image}{\code{signature(x = "dgTMatrix")}: plots an image of
39 : bates 79 \code{x} using the \code{\link[lattice]{levelplot}} function}
40 : bates 480 \item{t}{\code{signature(x = "dgTMatrix")}: returns the transpose of
41 : bates 79 \code{x}}
42 : bates 10 }
43 :     }
44 :     %\references{}
45 :     %\author{}
46 :     \note{Triplet matrices are a convenient form in which to construct sparse
47 : bates 480 matrices after which they can be coerced to \code{dgCMatrix} objects.}
48 : bates 10 \seealso{
49 : bates 480 \code{\link{dgCMatrix-class}}
50 : bates 10 }
51 :     %\examples{}
52 :     \keyword{classes}
53 :     \keyword{algebra}

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge