Skip to content

Commit

Permalink
updated to more general sparse matrix class
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Weine committed Mar 11, 2024
1 parent f32f4bd commit 9877da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/argument_checking.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Return true if x is a compressed, sparse, column-oriented numeric
# matrix.
is.sparse.matrix <- function (x)
(inherits(x,"dgCMatrix") || inherits(x,"dgTMatrix")) && is.numeric(x@x)
inherits(x,"dsparseMatrix") && is.numeric(x@x)

# Verify that x is matrix with finite, numeric entries.
verify.matrix <- function (x, arg.name = deparse(substitute(x))) {
Expand Down

0 comments on commit 9877da0

Please sign in to comment.