\HeaderA{namedSparse-class}{Class "namedSparse" adds margin names to sparse matrices}{namedSparse.Rdash.class}
\aliasA{+,namedSparse,namedSparse-method}{namedSparse-class}{+,namedSparse,namedSparse.Rdash.method}
\aliasA{AMN}{namedSparse-class}{AMN}
\aliasA{Arith,namedSparse,namedSparse-method}{namedSparse-class}{Arith,namedSparse,namedSparse.Rdash.method}
\aliasA{as.matrix,namedSparse-method}{namedSparse-class}{as.matrix,namedSparse.Rdash.method}
\aliasA{as.matrix.ok}{namedSparse-class}{as.matrix.ok}
\aliasA{colinds}{namedSparse-class}{colinds}
\aliasA{colinds,namedSparse,character-method}{namedSparse-class}{colinds,namedSparse,character.Rdash.method}
\aliasA{colSums}{namedSparse-class}{colSums}
\aliasA{colSums,namedSparse,missing,missing-method}{namedSparse-class}{colSums,namedSparse,missing,missing.Rdash.method}
\aliasA{colSumsSp}{namedSparse-class}{colSumsSp}
\aliasA{dimnames,namedSparse-method}{namedSparse-class}{dimnames,namedSparse.Rdash.method}
\aliasA{dimnames<-,namedSparse,list-method}{namedSparse-class}{dimnames<.Rdash.,namedSparse,list.Rdash.method}
\aliasA{exns2}{namedSparse-class}{exns2}
\aliasA{makeNamedSparse}{namedSparse-class}{makeNamedSparse}
\aliasA{makeSparseZero}{namedSparse-class}{makeSparseZero}
\aliasA{mapNamesInds}{namedSparse-class}{mapNamesInds}
\aliasA{mat}{namedSparse-class}{mat}
\aliasA{mat,namedSparse-method}{namedSparse-class}{mat,namedSparse.Rdash.method}
\aliasA{maxval}{namedSparse-class}{maxval}
\aliasA{maxval,matrix.csr-method}{namedSparse-class}{maxval,matrix.csr.Rdash.method}
\aliasA{mkNS}{namedSparse-class}{mkNS}
\aliasA{ncol,namedSparse-method}{namedSparse-class}{ncol,namedSparse.Rdash.method}
\aliasA{nrow,namedSparse-method}{namedSparse-class}{nrow,namedSparse.Rdash.method}
\aliasA{nsparse}{namedSparse-class}{nsparse}
\aliasA{rowinds}{namedSparse-class}{rowinds}
\aliasA{rowinds,namedSparse,character-method}{namedSparse-class}{rowinds,namedSparse,character.Rdash.method}
\aliasA{rowSums}{namedSparse-class}{rowSums}
\aliasA{rowSums,namedSparse,missing,missing-method}{namedSparse-class}{rowSums,namedSparse,missing,missing.Rdash.method}
\aliasA{rowSumsSp}{namedSparse-class}{rowSumsSp}
\aliasA{show,namedSparse-method}{namedSparse-class}{show,namedSparse.Rdash.method}
\aliasA{sumSp}{namedSparse-class}{sumSp}
\aliasA{sumSpSLOW}{namedSparse-class}{sumSpSLOW}
\aliasA{t,namedSparse-method}{namedSparse-class}{t,namedSparse.Rdash.method}
\aliasA{[,namedSparse-method}{namedSparse-class}{[,namedSparse.Rdash.method}
\aliasA{\%*\%,namedSparse,namedSparse-method}{namedSparse-class}{.Rpcent.*.Rpcent.,namedSparse,namedSparse.Rdash.method}
\aliasA{\%+\%}{namedSparse-class}{.Rpcent.+.Rpcent.}
\keyword{classes}{namedSparse-class}
\begin{Description}\relax
manages margin names for sparse matrices
\end{Description}
\begin{Section}{Objects from the Class}
Objects can be created by calls of the form \code{new("namedSparse", ...)}.
These are S4 objects that include a SparseM::matrix.csr,
associated dimnames in the customary form, and two
lists of name-to-index mapping environments (for row and column name resolution,
with forward (name to index) and backward (index to name) mapping).
\end{Section}
\begin{Section}{Slots}
\describe{
\item[\code{Dimnames}:] Object of class \code{"list"} ordinary
dimnames matrix metadata 
\item[\code{mat}:] Object of class \code{"matrix.csr"} sparse matrix 
}
\end{Section}
\begin{Section}{Methods}
\describe{
\item[Arith] \code{signature(e1 = "namedSparse", e2 = "namedSparse")}: ... 
\item[show] \code{signature(object = "namedSparse")}: ... 
}
\end{Section}
\begin{Note}\relax
A constructor makeNamedSparse is illustrated in the
example.
\end{Note}
\begin{Author}\relax
VJ Carey <stvjc@channing.harvard.edu>
\end{Author}
\begin{Examples}
\begin{ExampleCode}
data(A.csr)
namedA <- mkNS(A.csr) # installs default dimnames R{1:nrow}, C{1:ncol}
print(namedA)
print(colSums(namedA))
dimnames(namedA) <- list(paste("A",1:10,sep=""),paste("B",1:5,sep=""))
print(namedA)
print(namedA %*% t(namedA))
\end{ExampleCode}
\end{Examples}

