Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add classes of linear operators and quadratic functions #85

Merged
merged 4 commits into from
Dec 22, 2023

Conversation

NizarBousselmi
Copy link
Contributor

Add the classes of symmetric and skew-symmetric linear operators and the class of homogeneous quadratic functions

Add the classes of symmetric and skew-symmetric linear operators and the class of homogeneous quadratic functions
Add the new operator class "linear operator" which is a general (not necessarly symmetric) operator M with bounded norm. We can either use the classical method gradient(x) to obtain Mx or the new method gradient_transpose(u) to obtain M^T u. Therefore, it needs to distinguish pairs of points {(x,y)} produced by y = M.gradient(x) and pairs {(u,v)} produced by v = M.gradient_transpose(u) thanks to the new attribute "second_list_of_points".
Add two examples of the gradient method applied to minimization of:
1) quadratics functions (using the new class SmoothStronglyConvexQuadraticFunctions)
2) g(Mx) (using the new operators classes LinearOperator, SymmetricLinearOperator, or SkewSymmetricLinearOperator).

Future work: It would be great to exploit the operators classes to define a new function class "LinearlyComposedFunction" of the form F(x) = g(Mx).
Copy link

codecov bot commented Dec 22, 2023

Codecov Report

Attention: 106 lines in your changes are missing coverage. Please review.

Comparison is base (6b1a6c3) 89.72% compared to head (6e8118f) 88.37%.
Report is 9 commits behind head on master.

Files Patch % Lines
PEPit/operators/linear.py 18.00% 41 Missing ⚠️
...tions/smooth_strongly_convex_quadratic_function.py 25.00% 21 Missing ⚠️
PEPit/operators/symmetric_linear.py 25.92% 20 Missing ⚠️
PEPit/operators/skew_symmetric_linear.py 26.92% 19 Missing ⚠️
PEPit/operators/cocoercive_strongly_monotone.py 88.88% 2 Missing ⚠️
...EPit/functions/smooth_convex_lipschitz_function.py 92.30% 1 Missing ⚠️
PEPit/functions/smooth_strongly_convex_function.py 0.00% 1 Missing ⚠️
PEPit/operators/negatively_comonotone.py 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #85      +/-   ##
==========================================
- Coverage   89.72%   88.37%   -1.36%     
==========================================
  Files         151      158       +7     
  Lines        5012     5246     +234     
==========================================
+ Hits         4497     4636     +139     
- Misses        515      610      +95     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bgoujaud bgoujaud merged commit 95138db into PerformanceEstimation:master Dec 22, 2023
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants