Skip to content

Commit

Permalink
Add ellipsis to rowProds so that method argument doesn't fail
Browse files Browse the repository at this point in the history
Starts to address #7
  • Loading branch information
const-ae committed Sep 28, 2020
1 parent 56870e0 commit 378374b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ setMethod("colLogSumExps", signature(lx = "xgCMatrix"),
#'
#' @export
setMethod("colProds", signature(x = "xgCMatrix"),
function(x, rows = NULL, cols = NULL, na.rm=FALSE){
function(x, rows = NULL, cols = NULL, na.rm=FALSE, ...){
if(! is.null(rows)){
x <- x[rows, , drop = FALSE]
}
Expand Down
2 changes: 1 addition & 1 deletion R/methods_row.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ setMethod("rowLogSumExps", signature(lx = "xgCMatrix"),
#' @rdname colProds-xgCMatrix-method
#' @export
setMethod("rowProds", signature(x = "xgCMatrix"),
function(x, rows = NULL, cols = NULL, na.rm=FALSE){
function(x, rows = NULL, cols = NULL, na.rm=FALSE, ...){
if(! is.null(rows)){
x <- x[rows, , drop = FALSE]
}
Expand Down
6 changes: 4 additions & 2 deletions man/colProds-xgCMatrix-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 378374b

Please sign in to comment.