From 9b7431894f875c7fb06deb6364838589f5be85d3 Mon Sep 17 00:00:00 2001 From: Balasubramanian Narasimhan Date: Tue, 3 Oct 2023 14:42:50 -0700 Subject: [PATCH] Fix one-letter typo that led to a bug --- DESCRIPTION | 4 ++-- R/sparse.R | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 3c48448..9cb2afb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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 = "bartolomeo.stellato@gmail.com"), diff --git a/R/sparse.R b/R/sparse.R index a6a1f9c..79401ef 100644 --- a/R/sparse.R +++ b/R/sparse.R @@ -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") @@ -55,3 +55,4 @@ ensure_dtc_matrix <- function(m) { Matrix::triu(as(as(as(m, "CsparseMatrix"), "generalMatrix"), "dMatrix")) } } +