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

spacetype abstract types to traits #72

Merged
merged 5 commits into from
May 17, 2023
Merged

spacetype abstract types to traits #72

merged 5 commits into from
May 17, 2023

Conversation

lkdvos
Copy link
Collaborator

@lkdvos lkdvos commented Feb 12, 2023

  • Removes InnerProductSpace and EuclideanSpace as abstract types.
  • Adds InnerProductStyle as a trait based mechanism to query if a space has an inner product.
  • Implements NoInnerProduct, HasInnerProduct and EuclideanInnerProduct as traits

Remark:
It might be clearer to remove this distinction altogether. I don't know of a current use of GeneralSpace, which is the only non-Euclidean spacetype to begin with. If we are happy with this design I'll update the docs as well

@codecov
Copy link

codecov bot commented Feb 13, 2023

Codecov Report

Merging #72 (61df30f) into master (c5aa8cb) will increase coverage by 0.10%.
The diff coverage is 79.50%.

@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
+ Coverage   66.91%   67.01%   +0.10%     
==========================================
  Files          38       38              
  Lines        4887     4939      +52     
==========================================
+ Hits         3270     3310      +40     
- Misses       1617     1629      +12     
Impacted Files Coverage Δ
src/TensorKit.jl 46.15% <ø> (ø)
src/tensors/linalg.jl 76.39% <32.00%> (-2.04%) ⬇️
src/spaces/vectorspaces.jl 89.74% <75.00%> (-2.04%) ⬇️
src/spaces/deligne.jl 87.09% <85.71%> (ø)
src/tensors/abstracttensor.jl 82.35% <85.71%> (+1.10%) ⬆️
src/tensors/factorizations.jl 95.65% <93.54%> (-0.15%) ⬇️
src/spaces/cartesianspace.jl 81.48% <100.00%> (+1.48%) ⬆️
src/spaces/complexspace.jl 87.09% <100.00%> (+1.91%) ⬆️
src/spaces/generalspace.jl 95.23% <100.00%> (+0.23%) ⬆️
src/spaces/gradedspace.jl 93.65% <100.00%> (+0.20%) ⬆️
... and 2 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@lkdvos lkdvos marked this pull request as ready for review April 29, 2023 19:38
@lkdvos
Copy link
Collaborator Author

lkdvos commented Apr 30, 2023

Cannot really seem to figure out why CI fails on windows with julia 1.6?

@lkdvos lkdvos merged commit 820f092 into Jutho:master May 17, 2023
11 of 12 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.

None yet

1 participant