Skip to content

Commit

Permalink
Merge branch 'dev-0.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
goulart-paul committed Feb 24, 2023
2 parents 749fbf1 + e72e294 commit 9f5ed76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "QDLDL"
uuid = "bfc457fd-c171-5ab7-bd9e-d5dbfc242d63"
authors = ["Paul Goulart <[email protected]>"]
version = "0.4.0"
version = "0.4.1"


[deps]
Expand Down
4 changes: 2 additions & 2 deletions src/QDLDL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function update_values!(
triuA = F.workspace.triuA #post permutation internal data
AtoPAPt = F.workspace.AtoPAPt #mapping from input matrix entries to triuA

if isnothing(AtoPAPt)
if AtoPAPt === nothing
@views triuA.nzval[indices] .= values
else
@views triuA.nzval[AtoPAPt[indices]] .= values
Expand All @@ -233,7 +233,7 @@ function scale_values!(
triuA = F.workspace.triuA #post permutation internal data
AtoPAPt = F.workspace.AtoPAPt #mapping from input matrix entries to triuA

if isnothing(AtoPAPt)
if AtoPAPt === nothing
@views triuA.nzval[indices] .*= scale
else
@views triuA.nzval[AtoPAPt[indices]] .*= scale
Expand Down

0 comments on commit 9f5ed76

Please sign in to comment.