Skip to content

Commit

Permalink
Fix one-letter typo that led to a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bnaras committed Oct 3, 2023
1 parent b5fdc02 commit 9b74318
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: osqp
Title: Quadratic Programming Solver using the 'OSQP' Library
Version: 0.6.3
Date: 2023-10-02
Version: 0.6.3.1
Date: 2023-10-03
Authors@R: c(
person("Bartolomeo", "Stellato", role = c("aut", "ctb", "cph"),
email = "[email protected]"),
Expand Down
3 changes: 2 additions & 1 deletion R/sparse.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ensure_dgc_matrix <- function(m) {
#' @importFrom methods as
#' @noRd
ensure_dtc_matrix <- function(m) {
if (inherits(m, "dgCMatrix")) {
if (inherits(m, "dtCMatrix")) {
m
} else if (inherits(m, "matrix")) {
Matrix::.m2sparse(m, "dtCMatrix")
Expand All @@ -55,3 +55,4 @@ ensure_dtc_matrix <- function(m) {
Matrix::triu(as(as(as(m, "CsparseMatrix"), "generalMatrix"), "dMatrix"))
}
}

0 comments on commit 9b74318

Please sign in to comment.