diff --git a/Project.toml b/Project.toml index e453826..ea62801 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "QDLDL" uuid = "bfc457fd-c171-5ab7-bd9e-d5dbfc242d63" authors = ["Paul Goulart "] -version = "0.4.0" +version = "0.4.1" [deps] diff --git a/src/QDLDL.jl b/src/QDLDL.jl index 0ed0d9c..7cb1171 100644 --- a/src/QDLDL.jl +++ b/src/QDLDL.jl @@ -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 @@ -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