Skip to content

Commit

Permalink
Fix compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ojwoodford authored Aug 22, 2023
1 parent d77a117 commit ecd01cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[compat]
DiffResults = "1.1"

This comment has been minimized.

Copy link
@ojwoodford

ojwoodford Aug 22, 2023

Author Owner
ForwardDiff = "0.10"
HybridArrays = "0.4"
IfElse = "0.1.1"
LDLFactorizations = "0.10"
LinearSolve = "2.1"
Static = "0.8.7"
StaticArrays = "1"
VisualGeometryDatasets = "0.2.1"
julia = "1.6"
Expand Down
4 changes: 1 addition & 3 deletions test/functional.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ Base.eltype(::RosenbrockB) = Float64
@test problem.varcostmapvalid == false
NLLSsolver.updatevarcostmap!(problem)
@test problem.varcostmapvalid == true
varcostmap = Matrix(problem.varcostmap)
println(varcostmap)
@test vec(sum(varcostmap; dims=2)) == [2; 1]
@test vec(sum(Matrix(problem.varcostmap); dims=2)) == [2; 1]

# Create a subproblem
@test NLLSsolver.countcosts(NLLSsolver.resnum, NLLSsolver.subproblem(problem, trues(2)).costs) == 2
Expand Down
3 changes: 2 additions & 1 deletion test/marginalize.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NLLSsolver, SparseArrays, StaticArrays, Test
using NLLSsolver, SparseArrays, StaticArrays, Test, Random

@testset "marginalize.jl" begin
# Define the size of test problem
Expand All @@ -7,6 +7,7 @@ using NLLSsolver, SparseArrays, StaticArrays, Test
pairs_ = [2, 1, 6, 1, 7, 1, 9, 1, 8, 2, 7, 3, 8, 3, 10, 3, 12, 4, 4, 3, 9, 5, 10, 5, 11, 5, 6, 5, 6, 4, 11, 6, 12, 6]

# Intitialize a sparse linear system randomly
Random.seed!(1)
pairs = [SVector(i, i) for i in 1:length(blocksizes)]
for i in 1:2:length(pairs_)
push!(pairs, SVector(pairs_[i], pairs_[i+1]))
Expand Down

1 comment on commit ecd01cd

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/90090

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v3.0.0 -m "<description of version>" ecd01cd8340d50426354e491f5fab726075f449d
git push origin v3.0.0

Please sign in to comment.