Skip to content

Commit

Permalink
Fix osqp
Browse files Browse the repository at this point in the history
  • Loading branch information
danigiro committed Jun 3, 2024
1 parent e26c81e commit 32ecf33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/reco.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ recoM <- function(basef, W, Ht, sol = "direct", nn = FALSE, nn_type = "osqp", se
switch(nn_type,
osqp = {
if(isDiagonal(W)){
P <- .sparseDiagonal(x = diag(W)^(-1))
P <- Diagonal(x = diag(W)^(-1))
}else{
R <- chol(W)
P <- chol2inv(R)
Expand Down

0 comments on commit 32ecf33

Please sign in to comment.