Skip to content

Commit

Permalink
release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanemac committed Dec 9, 2024
1 parent 5a9c596 commit c15b02d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ProxTV"
uuid = "925ea013-038b-5ab6-a1ab-e0849925e528"
authors = ["Nathan Allaire <[email protected]> and contributors"]
version = "0.3.0"
version = "1.0.0"

[deps]
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
Expand Down
6 changes: 6 additions & 0 deletions src/ProxTV.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c15b02d

Please sign in to comment.