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

Drop caching from matrix spaces and algebras #1313

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

fingolfin
Copy link
Member

Also turn their generic implementations into non-mutable structs, so
instances can be stack allocated and does not need caching. This will
soon be the case for all matrix space implementations. That's why
caching is not necessary anymore.

@fingolfin
Copy link
Member Author

I am working on a follow-up PR which will eliminate the need for custom MatSpace subtypes (at least all existing ones can be replaced by it, of course in theory someone might want to store extra data in a mat space, then that would be different; but we don't do that right now).

But that code requires some more changes than I expected; so I thought it would be good to already submit this bit, which is already useful on its own.

@codecov
Copy link

codecov bot commented Mar 31, 2023

Codecov Report

Merging #1313 (b90a5e3) into master (2ef79fc) will decrease coverage by 0.22%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1313      +/-   ##
==========================================
- Coverage   85.81%   85.59%   -0.22%     
==========================================
  Files         102      101       -1     
  Lines       27879    27867      -12     
==========================================
- Hits        23923    23854      -69     
- Misses       3956     4013      +57     
Impacted Files Coverage Δ
src/Matrix.jl 91.56% <100.00%> (-0.27%) ⬇️
src/MatrixAlgebra.jl 91.94% <100.00%> (ø)
src/generic/GenericTypes.jl 93.46% <100.00%> (-0.05%) ⬇️
src/generic/Matrix.jl 97.00% <100.00%> (ø)
src/generic/MatrixAlgebra.jl 100.00% <100.00%> (ø)

... and 14 files with indirect coverage changes

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

Also turn their generic implementations into non-mutable structs, so
instances can be stack allocated and does not need caching. This will
soon be the case for all matrix space implementations. That's why
caching is not necessary anymore.
@fingolfin fingolfin requested a review from thofma March 31, 2023 13:25
@thofma thofma merged commit da9341c into Nemocas:master Mar 31, 2023
@fingolfin fingolfin deleted the mh/MatSpace branch March 31, 2023 14:45
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