SCM

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : bates 480 \name{dsCMatrix-class}
2 : bates 10 \docType{class}
3 : bates 480 \alias{dsCMatrix-class}
4 : bates 547 \alias{dsTMatrix-class}
5 : bates 480 \alias{solve,dsCMatrix,matrix-method}
6 : bates 683 \alias{solve,dsCMatrix,dgeMatrix-method}
7 : bates 480 \alias{chol,dsCMatrix,missing-method}
8 :     \alias{chol,dsCMatrix,logical-method}
9 :     \alias{t,dsCMatrix-method}
10 : bates 558 \alias{t,dsTMatrix-method}
11 : bates 480 \alias{coerce,dsCMatrix,dgTMatrix-method}
12 :     \alias{coerce,dsCMatrix,dgeMatrix-method}
13 :     \alias{coerce,dsCMatrix,matrix-method}
14 : bates 744 \alias{coerce,dsCMatrix,lsCMatrix-method}
15 : bates 558 \alias{coerce,dsTMatrix,matrix-method}
16 :     \alias{coerce,dsTMatrix,dgeMatrix-method}
17 : bates 589 \alias{coerce,dsTMatrix,dsCMatrix-method}
18 : bates 558 \alias{coerce,dsTMatrix,dsyMatrix-method}
19 : bates 480 \alias{determinant,dsCMatrix,missing-method}
20 :     \alias{determinant,dsCMatrix,logical-method}
21 : bates 10 \title{Symmetric, compressed, sparse column matrices}
22 : bates 480 \description{The \code{dsCMatrix} class is a class of symmetric, sparse
23 : bates 10 matrices in the compressed, column-oriented format. In this
24 :     implementation the non-zero elements in the columns are sorted into
25 : bates 547 increasing row order. The \code{dsTMatrix} class is a class of
26 :     symmetric, sparse matrices in triplet format.}
27 : bates 10 \section{Objects from the Class}{
28 : bates 547 Objects can be created by calls of the form \code{new("dsCMatrix",
29 :     ...)} or \code{new("dsTMatrix", ...)}
30 : bates 10 }
31 :     \section{Slots}{
32 :     \describe{
33 :     \item{\code{uplo}:}{A character object indicating if the upper
34 :     triangle (\code{"U"} or \code{"u"}) or the lower triangle
35 :     (\code{"L"} or \code{"l"}) is stored. At present only the lower
36 :     triangle form is allowed.}
37 :     \item{\code{p}:}{Object of class \code{"integer"} of pointers, one
38 :     for each column, to the initial (zero-based) index of elements in
39 : bates 547 the column. (Only present in the \code{dsCMatrix} class.)}
40 : bates 10 \item{\code{i}:}{Object of class \code{"integer"} of length nnzero
41 :     (number of non-zero elements). These are the row numbers for
42 :     each non-zero element in the matrix.}
43 : bates 547 \item{\code{j}:}{Object of class \code{"integer"} of length nnzero
44 :     (number of non-zero elements). These are the column numbers for
45 :     each non-zero element in the matrix. (Only present in the
46 :     \code{dsTMatrix} class.)}
47 : bates 10 \item{\code{x}:}{Object of class \code{"numeric"} - the non-zero
48 :     elements of the matrix.}
49 : bates 476 \item{\code{factors}:}{Object of class \code{"list"} - a list
50 : bates 10 of factorizations of the matrix. }
51 :     \item{\code{Dim}:}{Object of class \code{"integer"} - the dimensions
52 :     of the matrix - must be an integer vector with exactly two
53 :     non-negative values.}
54 :     }
55 :     }
56 :     \section{Extends}{
57 : bates 480 Class \code{"dgCMatrix"}, directly.
58 : bates 10 }
59 :     \section{Methods}{
60 :     \describe{
61 : bates 480 \item{solve}{\code{signature(a = "dsCMatrix", b = "matrix")}: Solve
62 : bates 10 a linear system of equations defined by \code{x} using a Cholesky
63 :     decomposition.}
64 : bates 480 \item{chol}{\code{signature(x = "dsCMatrix", pivot = "logical")}:
65 : bates 10 Returns (and stores) the Cholesky decomposition of the matrix
66 :     \code{x}. If \code{pivot} is \code{TRUE} (the default) Metis is
67 :     used to create a reordering of the rows and columns of \code{x} so
68 :     as to minimize fill-in.}
69 : bates 480 \item{determinant}{\code{signature(x = "dsCMatrix", logarithm =
70 : bates 396 "missing")}: Evaluate the determinant of \code{x} on the
71 :     logarithm scale. This creates and stores the Cholesky factorization.}
72 : bates 480 \item{determinant}{\code{signature(x = "dsCMatrix", logarithm =
73 : bates 396 "logical")}: Evaluate the determinant of \code{x} on the
74 :     logarithm scale or not, according to the \code{logarithm}
75 :     argument. This creates and stores the Cholesky factorization.}
76 : bates 558 \item{t}{\code{signature(x = "dsCMatrix")}: Transpose. Because
77 :     \code{x} is symmetric this has no effect.}
78 :     \item{t}{\code{signature(x = "dsTMatrix")}: Transpose. For the
79 :     \code{dsTMatrix} class the row and column indices are interchanged
80 :     so that a matrix for which the upper triangle is stored produces a
81 :     matrix for which the lower triangle is stored and vice versa.}
82 : bates 480 \item{coerce}{\code{signature(from = "dsCMatrix", to = "dgTMatrix")}}
83 :     \item{coerce}{\code{signature(from = "dsCMatrix", to = "dgeMatrix")}}
84 :     \item{coerce}{\code{signature(from = "dsCMatrix", to = "matrix")}}
85 : bates 558 \item{coerce}{\code{signature(from = "dsTMatrix", to = "dgeMatrix")}}
86 : bates 589 \item{coerce}{\code{signature(from = "dsTMatrix", to = "dsCMatrix")}}
87 : bates 558 \item{coerce}{\code{signature(from = "dsTMatrix", to = "dsyMatrix")}}
88 :     \item{coerce}{\code{signature(from = "dsTMatrix", to = "matrix")}}
89 : bates 10 }
90 :     }
91 :     %\references{}
92 :     %\author{}
93 :     %\note{}
94 :     \seealso{
95 : bates 480 \code{\link{dgCMatrix-class}}, \code{\link{dgTMatrix-class}},
96 :     \code{\link{dgeMatrix-class}}
97 : bates 10 }
98 :     %\examples{}
99 :     \keyword{classes}
100 :     \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