\HeaderA{dgRMatrix-class}{Sparse Compressed, Row-oriented Numeric Matrices}{dgRMatrix.Rdash.class}
\aliasA{diag,dgRMatrix-method}{dgRMatrix-class}{diag,dgRMatrix.Rdash.method}
\aliasA{dim,dgRMatrix-method}{dgRMatrix-class}{dim,dgRMatrix.Rdash.method}
\aliasA{t,dgRMatrix-method}{dgRMatrix-class}{t,dgRMatrix.Rdash.method}
\keyword{classes}{dgRMatrix-class}
\keyword{algebra}{dgRMatrix-class}
\begin{Description}\relax
The \code{dgRMatrix} class is a class of sparse numeric
matrices in the compressed, sparse, row-oriented format.  In this
implementation the non-zero elements in the rows are sorted into
increasing column order.

\bold{Note:} Currently, the column-oriented sparse classes, e.g.,
\code{\LinkA{dgCMatrix}{dgCMatrix.Rdash.class}}, are preferred and better supported in
the \pkg{Matrix} package.
\end{Description}
\begin{Section}{Objects from the Class}
Objects can be created by calls of the form \code{new("dgRMatrix", ...)}.
\end{Section}
\begin{Section}{Slots}
\describe{
\item[\code{j}:] Object of class \code{"integer"} of length nnzero
(number of non-zero elements).  These are the column numbers for
each non-zero element in the matrix.
\item[\code{p}:] Object of class \code{"integer"} of pointers, one
for each row, to the initial (zero-based) index of elements in
the row.
\item[\code{x}:] Object of class \code{"numeric"} - the non-zero
elements of the matrix.
\item[\code{Dim}:] Object of class \code{"integer"} - the dimensions
of the matrix.
}
\end{Section}
\begin{Section}{Methods}
\describe{
\item[coerce] \code{signature(from = "matrix", to = "dgRMatrix")}
\item[coerce] \code{signature(from = "dgRMatrix", to = "matrix")}
\item[coerce] \code{signature(from = "dgRMatrix", to = "dgTMatrix")}
\item[diag] \code{signature(x = "dgRMatrix")}: returns the diagonal
of \code{x}
\item[dim] \code{signature(x = "dgRMatrix")}: returns the dimensions
of \code{x}
\item[image] \code{signature(x = "dgRMatrix")}: plots an image of
\code{x} using the \code{\LinkA{levelplot}{levelplot}} function
}
\end{Section}
\begin{SeeAlso}\relax
the \code{\LinkA{dgCMatrix}{dgCMatrix.Rdash.class}} class.
\end{SeeAlso}

