Skip to content

Commit

Permalink
Finish test coverage and changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Sep 4, 2024
1 parent 27268c6 commit d0f3aad
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable Changes to the Julia package `Manopt.jl` will be documented in this
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# [0.5.1] – unreleased
# [0.5.1] – September 4, 2024

## Changed

* slightly improves the test for the ` ExponentialFamilyProjection` text on the about page.

## Added

Expand Down
11 changes: 8 additions & 3 deletions test/solvers/test_proximal_point.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Manopt, Manifolds, ManifoldDiff
using Manopt, Manifolds, ManifoldDiff, Test
using ManifoldDiff: prox_distance, prox_distance!

@testset "Proximal Point" begin
Expand All @@ -12,8 +12,13 @@ using ManifoldDiff: prox_distance, prox_distance!
p0 = [0.0, 0.0, 1.0]
q1 = proximal_point(M, prox_f, p0)
@test distance(M, q, q1) < 1e-12
q2 = proximal_point(M, prox_f!, p0; evaluation=InplaceEvaluation())
@test distance(M, q1, q2) == 0
q2 = copy(M, p0)
os2 = proximal_point!(
M, prox_f!, q2; evaluation=InplaceEvaluation(), return_objective=true
)
@test isapprox(M, q1, q2)
q2a = get_proximal_map(M, os2[1], 1.0, q2)
@test isapprox(M, q2, q2a)
os3 = proximal_point(M, prox_f, p0; return_state=true, return_objective=true)
obj = os3[1]
# test with get_prox map that these are fix points
Expand Down

0 comments on commit d0f3aad

Please sign in to comment.