File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ authors = ["Caleb Derrickson <calebderrickson@gmail.com> and contributors"]
44version = " 0.1.0"
55
66[deps ]
7+ Adapt = " 79e6a3ab-5dfb-504d-930d-738a2a938a0e"
78BesselK = " 432ab697-7a72-484f-bc4a-bc531f5c819b"
89CUDA = " 052768ef-5323-5732-b1bb-66c8b64840ba"
910Distances = " b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
@@ -21,30 +22,6 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2122SpecialFunctions = " 276daf66-3868-5448-9aa4-cd146d93841b"
2223Statistics = " 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 ]
5027HSL = " 34c5aeac-e683-54a6-a0e9-6e0fdc586c50"
Original file line number Diff line number Diff line change 554554 Checks csc format. A user can call this, but not advised.
555555"""
556556function 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
611611end
You can’t perform that action at this time.
0 commit comments