From c15b02d961981f20d226fb8c8a13633b38513e2b Mon Sep 17 00:00:00 2001 From: nathanemac <91251698+nathanemac@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:59:14 -0500 Subject: [PATCH] release v1.0.0 --- Project.toml | 2 +- src/ProxTV.jl | 6 ++++++ test/runtests.jl | 5 ++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 6106afd..a68c060 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ProxTV" uuid = "925ea013-038b-5ab6-a1ab-e0849925e528" authors = ["Nathan Allaire and contributors"] -version = "0.3.0" +version = "1.0.0" [deps] JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899" diff --git a/src/ProxTV.jl b/src/ProxTV.jl index 17b28b1..7b2da58 100644 --- a/src/ProxTV.jl +++ b/src/ProxTV.jl @@ -12,6 +12,12 @@ function __init__() end end +# import functions that we extend from ShiftedProximalOperators +import ShiftedProximalOperators.shift! +import ShiftedProximalOperators.shifted +import ShiftedProximalOperators.prox! + +# export our new functions export AlgorithmContextCallback export InexactShiftedProximableFunction export NormLp, ShiftedNormLp, NormTVp, ShiftedNormTVp diff --git a/test/runtests.jl b/test/runtests.jl index 6711623..cb6e315 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -31,10 +31,9 @@ end ctx = AlgorithmContextCallback(dualGap=dualGap) - ctx_ptr = Ptr{Cvoid}(pointer_from_objref(ctx)) callback_pointer = @cfunction(simple_callback, Cint, (Ptr{Cdouble}, Csize_t, Cdouble, Ptr{Cvoid})) - @test PN_LPp(y, lambda, x, info, n, p, ws, positive, ctx_ptr, callback_pointer) == 1 # 1 is the expected return value of the function. This means that the function has been executed successfully. + @test PN_LPp(y, lambda, x, info, n, p, ws, positive, ctx, callback_pointer) == 1 # 1 is the expected return value of the function. This means that the function has been executed successfully. - @test TV(y, lambda, x, info, n, p, ws, ctx_ptr, callback_pointer)== 1 + @test TV(y, lambda, x, info, n, p, ws, ctx, callback_pointer) == 1 end