R/rowAnyNAs.R

Defines functions .DelayedMatrix_block_rowAnyNAs

### =============================================================================
### rowAnyNAs
###

### ----------------------------------------------------------------------------
### Exported methods
###

.DelayedMatrix_block_rowAnyNAs <- function(x, rows, cols, ..., useNames = TRUE) {
    rowAnys(x = x, rows = rows, cols = cols, value = NA, ..., useNames = useNames)
}

# ------------------------------------------------------------------------------
# General method
#

#' @inherit MatrixGenerics::rowAnyNAs
#' @importMethodsFrom DelayedArray seed
#' @rdname colAnyNAs
#' @export
setMethod("rowAnyNAs", "DelayedMatrix",
          function(x, rows = NULL, cols = NULL, force_block_processing = FALSE,
                   ..., useNames = TRUE) {
            .smart_seed_dispatcher(x, generic = MatrixGenerics::rowAnyNAs,
                                   blockfun = .DelayedMatrix_block_rowAnyNAs,
                                   force_block_processing = force_block_processing,
                                   rows = rows,
                                   cols = cols,
                                   ...,
                                   useNames = useNames)
          }
)
PeteHaitch/DelayedMatrixStats documentation built on May 6, 2024, 10:25 p.m.