Rev 4286 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{TsparseMatrix-class}\title{Class "TsparseMatrix" of Sparse Matrices in Triplet Form}\docType{class}\alias{TsparseMatrix-class}%% Methods:\alias{coerce,TsparseMatrix,CsparseMatrix-method}\alias{coerce,TsparseMatrix,lsparseMatrix-method}\alias{coerce,TsparseMatrix,lMatrix-method}\alias{coerce,TsparseMatrix,nsparseMatrix-method}\alias{coerce,TsparseMatrix,nMatrix-method}\alias{coerce,Matrix,TsparseMatrix-method}\alias{coerce,matrix,TsparseMatrix-method}% "[" are in ./Xtrct-methods.Rd\alias{\%*\%,TsparseMatrix,ANY-method}\alias{\%*\%,ANY,TsparseMatrix-method}\alias{crossprod,TsparseMatrix,ANY-method}\alias{crossprod,TsparseMatrix,missing-method}\alias{tcrossprod,TsparseMatrix,ANY-method}\alias{tcrossprod,TsparseMatrix,missing-method}\alias{solve,TsparseMatrix,ANY-method}\alias{solve,TsparseMatrix,missing-method}\alias{t,TsparseMatrix-method}%\description{The \code{"TsparseMatrix"} class is the virtual class ofall sparse matrices coded in triplet form. Since it is a virtual class,no objects may be created from it. See\code{showClass("TsparseMatrix")} for its subclasses.}\section{Slots}{\describe{\item{\code{Dim}, \code{Dimnames}:}{from the \code{"Matrix"} class,}\item{\code{factors}:}{from class \code{"sparseMatrix"}, see\code{\linkS4class{sparseMatrix}}.}\item{\code{i}:}{Object of class \code{"integer"} - the row indicesof non-zero entries \emph{in 0-base}, i.e., must be in\code{0:(nrow(.)-1)}.}\item{\code{j}:}{Object of class \code{"integer"} - the columnindices of non-zero entries. Must be the same length as slot\code{i} and \emph{0-based} as well, i.e., in \code{0:(ncol(.)-1)}.}}}\section{Extends}{Class \code{"sparseMatrix"}, directly.Class \code{"Matrix"}, by class \code{"sparseMatrix"}.}\section{Methods}{Extraction (\code{"["}) methods, see\code{\link{[-methods}}.%-> ./Xtrct-methods.Rd}\note{Most operations with sparse matrices are performed using thecompressed, column-oriented or \code{\linkS4class{CsparseMatrix}}representation. The triplet representation is convenient forcreating a sparse matrix or for reading and writing suchmatrices. Once it is created, however, the matrix is generallycoerced to a \code{\linkS4class{CsparseMatrix}} for furtheroperations.For convenience, methods for some operations such as \code{\%*\%}and \code{crossprod} are defined for\code{\linkS4class{TsparseMatrix}} objects. These methods simplycoerce the \code{\linkS4class{TsparseMatrix}} object to a\code{\linkS4class{CsparseMatrix}} object then perform theoperation.}% \author{Martin Maechler}\seealso{its superclass, \code{\linkS4class{sparseMatrix}}, and the\code{\linkS4class{dgTMatrix}} class, for the links to other classes.}\examples{showClass("TsparseMatrix")## or just the subclasses' namesnames(getClass("TsparseMatrix")@subclasses)}\keyword{classes}