Skip to content

Projection on p-norm ball in Rust#383

Merged
alphaville merged 10 commits into
masterfrom
feature/333-p-norm-ball-projection
Mar 14, 2026
Merged

Projection on p-norm ball in Rust#383
alphaville merged 10 commits into
masterfrom
feature/333-p-norm-ball-projection

Conversation

@alphaville

@alphaville alphaville commented Mar 11, 2026

Copy link
Copy Markdown
Owner

Main Changes

  • Implementation of projection on p-norm ball in Rust
  • Rust documentation
  • Unit tests

Priority

PR #381 should be merged first.

Target version

This PR and #384 will be part of OpEn v0.11.0.

Associated Issues

TODOs

  • Documentation
  • All tests must pass
  • Update CHANGELOG(s)
  • Update webpage documentation
  • Bump versions (in CHANGELOG, Cargo.toml and VERSION)

About:
- New file ballp.rs: impl of BallP projection
- Very basic unit testing
- Documentation

Issues:
- Addresses #333
@alphaville alphaville self-assigned this Mar 11, 2026
@alphaville alphaville added enhancement New feature or request rust issue related to the code Rust library labels Mar 11, 2026
@alphaville alphaville mentioned this pull request Mar 11, 2026
6 tasks
About:
- test projection onto lp-ball using random points on the sphere
- introduce rand_distr as a test dependency
- unit test of test function that generated random points
- test projection when x is inside the ball
About:
- testing that p-norm of projection is <= radius
- made lp_norm non-public function in BallP
About:
- Assert that inner product is < tolerance rather than <0
About:
- Unit test with lp-ball centered not at origin
- Clippy issues fixed
Cargo fmt set up in VS Code
@alphaville alphaville marked this pull request as ready for review March 13, 2026 16:57
@alphaville alphaville merged commit 87011f5 into master Mar 14, 2026
9 checks passed
@alphaville alphaville deleted the feature/333-p-norm-ball-projection branch March 16, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request rust issue related to the code Rust library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant