SCM

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 871, Fri Aug 26 17:26:49 2005 UTC revision 1737, Tue Jan 23 17:14:20 2007 UTC
# Line 1  Line 1 
1  \name{sparseMatrix-class}  \name{sparseMatrix-class}
2  \docType{class}  \docType{class}
3    \title{Virtual Class "sparseMatrix" --- Mother of Sparse Matrices}
4  \alias{sparseMatrix-class}  \alias{sparseMatrix-class}
5    %% Group methods
6    \alias{Compare,sparseMatrix,sparseMatrix-method}
7    \alias{Arith,sparseMatrix,sparseMatrix-method}
8    \alias{Arith,sparseMatrix,numeric-method}
9    \alias{Arith,numeric,sparseMatrix-method}
10    \alias{Math,sparseMatrix-method}
11    %\alias{Math2,sparseMatrix,numeric-method}
12    \alias{Ops,diagonalMatrix,sparseMatrix-method}
13    \alias{Ops,sparseMatrix,diagonalMatrix-method}
14    %
15    \alias{cbind2,sparseMatrix,sparseMatrix-method}
16    \alias{cbind2,sparseMatrix,matrix-method}
17    \alias{cbind2,matrix,sparseMatrix-method}
18    \alias{cbind2,sparseMatrix,numeric-method}
19    \alias{cbind2,numeric,sparseMatrix-method}
20    \alias{rbind2,sparseMatrix,sparseMatrix-method}
21    \alias{rbind2,sparseMatrix,matrix-method}
22    \alias{rbind2,matrix,sparseMatrix-method}
23    \alias{rbind2,sparseMatrix,numeric-method}
24    \alias{rbind2,numeric,sparseMatrix-method}
25    %
26    \alias{coerce,ANY,sparseMatrix-method}
27    \alias{-,sparseMatrix,missing-method}
28    \alias{diag,sparseMatrix-method}
29  \alias{show,sparseMatrix-method}  \alias{show,sparseMatrix-method}
30  \alias{\%*\%,sparseMatrix,ddenseMatrix-method}  \alias{colMeans,sparseMatrix-method}
31  \alias{\%*\%,ddenseMatrix,sparseMatrix-method}  \alias{colSums,sparseMatrix-method}
32  \alias{crossprod,sparseMatrix,ddenseMatrix-method}  \alias{rowMeans,sparseMatrix-method}
33  \alias{crossprod,ddenseMatrix,sparseMatrix-method}  \alias{rowSums,sparseMatrix-method}
34    % graph stuff
35  \alias{coerce,graph,sparseMatrix-method}  \alias{coerce,graph,sparseMatrix-method}
36  \alias{coerce,graphNEL,sparseMatrix-method}  \alias{coerce,graph,CsparseMatrix-method}
37  \title{Virtual Class "sparseMatrix" --- Mother of Sparse Matrices}  \alias{coerce,graphAM,sparseMatrix-method}
38    \alias{coerce,graphNEL,CsparseMatrix-method}
39    \alias{coerce,graphNEL,TsparseMatrix-method}
40    \alias{coerce,sparseMatrix,graph-method}
41    \alias{coerce,sparseMatrix,graphNEL-method}
42    \alias{coerce,TsparseMatrix,graphNEL-method}
43    \alias{coerce,dgTMatrix,graphNEL-method}
44    %
45  \description{Virtual Mother Class of All Sparse Matrices}  \description{Virtual Mother Class of All Sparse Matrices}
46  \section{Slots}{  \section{Slots}{
47    \code{Dim}, and \code{Dimnames}, see \code{\link{Matrix-class}}.    \describe{
48  % Should this be "written in stone" or should they be added?      \item{\code{Dim}:}{Object of class \code{"integer"} - the dimensions
49  %   Note that the current implementation keeps \code{Dimnames} empty for       of the matrix - must be an integer vector with exactly two
50  %   sparse matrices.       non-negative values.}
51        \item{\code{Dimnames}:}{a list of length two - inherited from class
52          \code{Matrix}, see \code{\linkS4class{Matrix}}.}
53        \item{\code{factors}:}{Object of class \code{"list"} - a list
54          of factorizations of the matrix. }
55      }
56  }  }
57  \section{Extends}{  \section{Extends}{
58    Class \code{"Matrix"}, directly.    Class \code{"Matrix"}, directly.
# Line 23  Line 61 
61    \describe{    \describe{
62      \item{show}{\code{signature(object = "sparseMatrix")}: The      \item{show}{\code{signature(object = "sparseMatrix")}: The
63        \code{\link{show}} method for sparse matrices prints        \code{\link{show}} method for sparse matrices prints
64        \emph{\dQuote{structural}} zeroes as \code{"."} or blank.}        \emph{\dQuote{structural}} zeroes as \code{"."} using the
65          non-exported \code{prSpMatrix} function which allows further
66          customization such as replacing \code{"."} by \code{" "} (blank).
67    
68          Note that \code{\link{options}(max.print)} will influence how many
69          entries of large matrices are printed at all.}
70    }    }
71  }  }
72  \note{  \note{
# Line 37  Line 80 
80  %\author{Martin}  %\author{Martin}
81  \examples{  \examples{
82  showClass("sparseMatrix") ## and look at the help() of its subclasses  showClass("sparseMatrix") ## and look at the help() of its subclasses
83    M <- Matrix(0, 10000, 100)
84    M[1,1] <- M[2,3] <- 3.14
85    M
86    \dontshow{% show() was slow in 0.9975-8 because of slow adjust="fancy"
87    op <- options(max.print = 25000, width = 80)
88    sink(print(tempfile()))
89    stopifnot((st <- system.time(show(M)))[1] < 1.0) # only 0.09 on cmath-3
90    sink()
91    st
92    options(op)
93    }
94  }  }
95  \keyword{classes}  \keyword{classes}

Legend:
Removed from v.871  
changed lines
  Added in v.1737

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