Skip to content

Commit 42c4b32

Browse files
Minor change to Project.toml. Also Added guard for CSC check for user given sparsity pattern
1 parent a34ab0a commit 42c4b32

2 files changed

Lines changed: 4 additions & 27 deletions

File tree

Project.toml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ authors = ["Caleb Derrickson <calebderrickson@gmail.com> and contributors"]
44
version = "0.1.0"
55

66
[deps]
7+
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
78
BesselK = "432ab697-7a72-484f-bc4a-bc531f5c819b"
89
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
910
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
@@ -21,30 +22,6 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2122
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
2223
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2324

24-
[compat]
25-
BesselK = "0.5.6"
26-
CUDA = "5.6.1"
27-
Distances = "0.10.12"
28-
Distributions = "0.25.117"
29-
HNSW = "0.1.5"
30-
HSL = "0.5.0"
31-
Ipopt = "1.7.1"
32-
JuMP = "1.24.0"
33-
KernelAbstractions = "0.9.34"
34-
LinearAlgebra = "1.10"
35-
MadNLP = "0.8.8"
36-
MadNLPGPU = "0.7.9"
37-
MadNLPHSL = "0.6.0"
38-
NLPModels = "0.21.5"
39-
NLPModelsJuMP = "0.13.2"
40-
NLPModelsTest = "0.10.2"
41-
NearestNeighbors = "0.4.21"
42-
Random = "1.10"
43-
SparseArrays = "1.10"
44-
SpecialFunctions = "2.5.0"
45-
Statistics = "1.10"
46-
Test = "1.10"
47-
julia = "1.10"
4825

4926
[extras]
5027
HSL = "34c5aeac-e683-54a6-a0e9-6e0fdc586c50"

src/utils.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,8 @@ end
554554
Checks csc format. A user can call this, but not advised.
555555
"""
556556
function is_csc_format(iVecchiaMLE::VecchiaMLEInput)::Bool
557-
rowsL = view(iVecchiaMLE.rowsL)
558-
colsL = view(iVecchiaMLE.colsL)
557+
rowsL = iVecchiaMLE.rowsL
558+
colsL = iVecchiaMLE.colsL
559559

560560
# check lengths
561561
(length(rowsL) != length(colsL)) || return false
@@ -605,7 +605,7 @@ function sanitize_input!(iVecchiaMLE::VecchiaMLEInput)
605605
# Check is not relevant rn since rowsL and colsL are stored as the same type.
606606
@assert (isnothing(iVecchiaMLE.rowsL) == isnothing(iVecchiaMLE.colsL)) "Both rowsL and colsL must be given!"
607607

608-
if !isnothing(iVecchiaMLE.rowsL)
608+
if !isnothing(iVecchiaMLE.rowsL) && !isnothing(iVecchiaMLE.colsL)
609609
@assert is_csc_format(iVecchiaMLE) "rowsL and colsL are not in CSC format!"
610610
end
611611
end

0 commit comments

Comments
 (0)