\HeaderA{all-methods}{"Matrix" Methods for Functions all() and any()}{all.Rdash.methods}
\aliasA{all,ldenseMatrix-method}{all-methods}{all,ldenseMatrix.Rdash.method}
\aliasA{all,lsparseMatrix-method}{all-methods}{all,lsparseMatrix.Rdash.method}
\aliasA{all,lsyMatrix-method}{all-methods}{all,lsyMatrix.Rdash.method}
\aliasA{all,Matrix-method}{all-methods}{all,Matrix.Rdash.method}
\aliasA{any,lMatrix-method}{all-methods}{any,lMatrix.Rdash.method}
\aliasA{any,Matrix-method}{all-methods}{any,Matrix.Rdash.method}
\keyword{methods}{all-methods}
\begin{Description}\relax
The basic \R{} functions \code{\LinkA{all}{all}} and \code{\LinkA{any}{any}} now
have methods for \code{\LinkA{Matrix}{Matrix.Rdash.class}} objects and should
behave as for \code{\LinkA{matrix}{matrix}} ones.
\end{Description}
\begin{Section}{Methods}
\describe{
\item[all] \code{signature(x = "Matrix", ..., na.rm = FALSE)}: ...
\item[any] \code{signature(x = "Matrix", ..., na.rm = FALSE)}: ...

\item[all] \code{signature(x = "ldenseMatrix", ..., na.rm = FALSE)}: ...
\item[all] \code{signature(x = "lsparseMatrix", ..., na.rm = FALSE)}: ...
}
\end{Section}
\begin{Examples}
\begin{ExampleCode}
M <- Matrix(1:12 +0, 3,4)
all(M >= 1) # TRUE
any(M < 0 ) # FALSE
MN <- M; MN[2,3] <- NA; MN
all(MN >= 0) # NA
any(MN <  0) # NA
any(MN <  0, na.rm = TRUE) # -> FALSE

\end{ExampleCode}
\end{Examples}

