Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fixed error in as.matrix.MXNDArray (#4185)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgfierro authored and piiswrong committed Dec 29, 2016
1 parent 209a4ac commit 241af0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R-package/R/ndarray.R
Expand Up @@ -176,7 +176,7 @@ as.matrix.MXNDArray <- function(nd) {
if (length(dim(nd)) != 2) {
stop("The input argument is not two dimensional matrix.")
}
as.matrix(as.array(x))
as.matrix(as.array(nd))
}

#' print operator overload of mx.ndarray
Expand Down

0 comments on commit 241af0b

Please sign in to comment.