1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
### =============================================================================
### 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)
}
)
|