Skip to content

Commit

Permalink
add unit test for DiagonalBFGS
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedLaghdafHABIBOULLAH committed Nov 4, 2024
1 parent 0d71bf0 commit 24e5f03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_diag.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ end
mul!(u, C, v)
@test (@allocated mul!(u, C, v)) == 0
@test (@wrappedallocs push!(C, u, v)) == 0
D = DiagonalBFGS(d)
mul!(u, D, v)
@test (@allocated mul!(u, D, v)) == 0
@test (@wrappedallocs push!(D, u, v)) == 0
end

@testset "reset" begin
Expand Down

0 comments on commit 24e5f03

Please sign in to comment.