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 956 - (view) (download) (as text)

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