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

Introduce has_components for Euclidean #759

Merged
merged 9 commits into from
Oct 20, 2024

Conversation

kellertuer
Copy link
Member

Since we now have available that

distance(Euclidean(3), p, q, 1)

for the -norm, this introduces it also for Euclidean. I do not directly see other manifolds that would be available for that.

@kellertuer kellertuer added extend manifold This issue proposes/asks for new functions to extend an existing manifold Ready-for-Review A label for pull requests that are feature-ready preview docs Add this label if you want to see a PR-preview of the documentation labels Oct 19, 2024
Copy link

codecov bot commented Oct 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.39%. Comparing base (5d28783) to head (69d1704).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #759   +/-   ##
=======================================
  Coverage   96.38%   96.39%           
=======================================
  Files         123      123           
  Lines       11438    11441    +3     
=======================================
+ Hits        11025    11028    +3     
  Misses        413      413           

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

@kellertuer
Copy link
Member Author

Currently Has_components does not “pass transparently” through MetricManifold. Should we add that to ManifoldsBase?

To be precise, we currently have that

M = Manifolds.MetricManifold(E, Manifolds.EuclideanMetric())

yields has_components(M) to be false. I think if we fix that we have to use traits – and this would have to be done in ManifoldsBase.jl I think.

@mateuszbaran
Copy link
Member

Nice. Could you also add tests that distance and norm work with r?

Currently Has_components does not “pass transparently” through MetricManifold. Should we add that to ManifoldsBase?

Right, yes, has_components should be a trait function with transparent passing.

@kellertuer
Copy link
Member Author

sure I can add those lines.

For the transparency, we should probably do that in ManifoldsBase?

@mateuszbaran
Copy link
Member

Yes, transparency should be in ManifoldsBase.jl.

@kellertuer
Copy link
Member Author

Sure, will do.

@kellertuer
Copy link
Member Author

Added the test for distance and norm. Also started the ManifoldsTestSuite. Similar to Lie groups I will try to now lower-level add functions therein and slowly transfer to using the test suite then. Yes that means I tweak that into other PRs a bit every now and then, but that is easier for me, I think, than the current open PR for that.

@mateuszbaran
Copy link
Member

Sure, that's fine.

@mateuszbaran
Copy link
Member

BTW, I haven't tagged 0.10.4 yet so this could be a part of it together with Oliver's PR.

@kellertuer
Copy link
Member Author

Just saw that 0.10.4 is not yet registered, then this can also be part of that. But I will do the transparency first in ManifoldsBase maybe.

@kellertuer
Copy link
Member Author

Already merged master here, but since we just merged a branch in 3 packages, all CIs might take a time ;) afterward I will merge this as well. We could register those two as 0.10.4 for sure.

@kellertuer kellertuer merged commit b3c0fa4 into master Oct 20, 2024
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extend manifold This issue proposes/asks for new functions to extend an existing manifold preview docs Add this label if you want to see a PR-preview of the documentation Ready-for-Review A label for pull requests that are feature-ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants