SCM

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : maechler 676 \name{sparseMatrix-class}
2 :     \docType{class}
3 : maechler 956 \title{Virtual Class "sparseMatrix" --- Mother of Sparse Matrices}
4 : maechler 676 \alias{sparseMatrix-class}
5 : maechler 1472 %% Group methods
6 :     \alias{Math,sparseMatrix-method}
7 :     %\alias{Math2,sparseMatrix,numeric-method}
8 : maechler 1799 \alias{Ops,sparseMatrix,sparseMatrix-method}
9 :     \alias{Ops,sparseMatrix,numeric-method}
10 :     \alias{Ops,numeric,sparseMatrix-method}
11 : maechler 1654 \alias{Ops,diagonalMatrix,sparseMatrix-method}
12 :     \alias{Ops,sparseMatrix,diagonalMatrix-method}
13 : maechler 1472 %
14 : maechler 1708 \alias{cbind2,sparseMatrix,sparseMatrix-method}
15 :     \alias{cbind2,sparseMatrix,matrix-method}
16 :     \alias{cbind2,matrix,sparseMatrix-method}
17 :     \alias{cbind2,sparseMatrix,numeric-method}
18 :     \alias{cbind2,numeric,sparseMatrix-method}
19 :     \alias{rbind2,sparseMatrix,sparseMatrix-method}
20 :     \alias{rbind2,sparseMatrix,matrix-method}
21 :     \alias{rbind2,matrix,sparseMatrix-method}
22 :     \alias{rbind2,sparseMatrix,numeric-method}
23 :     \alias{rbind2,numeric,sparseMatrix-method}
24 :     %
25 : maechler 1472 \alias{coerce,ANY,sparseMatrix-method}
26 : maechler 1747 \alias{coerce,sparseMatrix,generalMatrix-method}
27 : maechler 1845 \alias{coerce,sparseMatrix,symmetricMatrix-method}
28 :     \alias{coerce,sparseMatrix,triangularMatrix-method}
29 : maechler 956 \alias{-,sparseMatrix,missing-method}
30 : maechler 1472 \alias{diag,sparseMatrix-method}
31 : maechler 1845 \alias{dim<-,sparseMatrix-method}
32 : maechler 676 \alias{show,sparseMatrix-method}
33 : maechler 1290 \alias{colMeans,sparseMatrix-method}
34 :     \alias{colSums,sparseMatrix-method}
35 :     \alias{rowMeans,sparseMatrix-method}
36 :     \alias{rowSums,sparseMatrix-method}
37 : maechler 1271 % graph stuff
38 : maechler 871 \alias{coerce,graph,sparseMatrix-method}
39 : bates 1479 \alias{coerce,graph,CsparseMatrix-method}
40 : maechler 1271 \alias{coerce,graphAM,sparseMatrix-method}
41 : bates 1479 \alias{coerce,graphNEL,CsparseMatrix-method}
42 : maechler 1565 \alias{coerce,graphNEL,TsparseMatrix-method}
43 : maechler 908 \alias{coerce,sparseMatrix,graph-method}
44 :     \alias{coerce,sparseMatrix,graphNEL-method}
45 : maechler 1271 \alias{coerce,TsparseMatrix,graphNEL-method}
46 : maechler 908 \alias{coerce,dgTMatrix,graphNEL-method}
47 : maechler 1271 %
48 : maechler 676 \description{Virtual Mother Class of All Sparse Matrices}
49 :     \section{Slots}{
50 : maechler 925 \describe{
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 :     \item{\code{Dimnames}:}{a list of length two - inherited from class
55 : maechler 1281 \code{Matrix}, see \code{\linkS4class{Matrix}}.}
56 : maechler 925 \item{\code{factors}:}{Object of class \code{"list"} - a list
57 :     of factorizations of the matrix. }
58 :     }
59 : maechler 676 }
60 :     \section{Extends}{
61 :     Class \code{"Matrix"}, directly.
62 :     }
63 :     \section{Methods}{
64 :     \describe{
65 :     \item{show}{\code{signature(object = "sparseMatrix")}: The
66 :     \code{\link{show}} method for sparse matrices prints
67 : maechler 1737 \emph{\dQuote{structural}} zeroes as \code{"."} using the
68 :     non-exported \code{prSpMatrix} function which allows further
69 :     customization such as replacing \code{"."} by \code{" "} (blank).
70 :    
71 :     Note that \code{\link{options}(max.print)} will influence how many
72 :     entries of large matrices are printed at all.}
73 : maechler 676 }
74 :     }
75 : bates 685 \note{
76 :     In method selection for multiplication operations (i.e. \code{\%*\%}
77 : maechler 868 and the two-argument form of \code{\link[base]{crossprod}})
78 : bates 685 the sparseMatrix class takes precedence in the sense that if one
79 :     operand is a sparse matrix and the other is any type of dense matrix
80 :     then the dense matrix is coerced to a \code{dgeMatrix} and the
81 :     appropriate sparse matrix method is used.
82 :     }
83 : maechler 676 %\author{Martin}
84 :     \examples{
85 :     showClass("sparseMatrix") ## and look at the help() of its subclasses
86 : maechler 1737 M <- Matrix(0, 10000, 100)
87 :     M[1,1] <- M[2,3] <- 3.14
88 :     M
89 :     \dontshow{% show() was slow in 0.9975-8 because of slow adjust="fancy"
90 :     op <- options(max.print = 25000, width = 80)
91 :     sink(print(tempfile()))
92 :     stopifnot((st <- system.time(show(M)))[1] < 1.0) # only 0.09 on cmath-3
93 :     sink()
94 :     st
95 :     options(op)
96 : maechler 676 }
97 : maechler 1737 }
98 : maechler 676 \keyword{classes}

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