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

Move Symmetric/Hermitian rules and tests to own file #322

Merged
merged 4 commits into from
Dec 6, 2020

Conversation

sethaxen
Copy link
Member

@sethaxen sethaxen commented Dec 6, 2020

As proposed in #193 (comment), this PR just moves the rules for functions of Symmetric/Hermitian to their own file and does the same for the tests. Not only does this mirror the structure of LinearAlgebra (where these methods are defined in symmetric.jl), but with #193 and as mentioned in #321, more specializations are coming for these matrices, and this will make structured.jl less cluttered.

This PR does not make any changes to functionality and only exists so that these future PRs are cleanly separated from the reorg. As such I don't think it needs a bump to version number.

@codecov-io
Copy link

codecov-io commented Dec 6, 2020

Codecov Report

Merging #322 (cc3fa4c) into master (fa4b93a) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #322   +/-   ##
=======================================
  Coverage   97.46%   97.46%           
=======================================
  Files          17       18    +1     
  Lines         988      988           
=======================================
  Hits          963      963           
  Misses         25       25           
Impacted Files Coverage Δ
src/ChainRules.jl 100.00% <ø> (ø)
src/rulesets/LinearAlgebra/structured.jl 98.90% <ø> (-0.33%) ⬇️
src/rulesets/LinearAlgebra/symmetric.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa4b93a...cc3fa4c. Read the comment docs.

@willtebbutt
Copy link
Member

Seems reasonable to me.

Regarding version number: to my mind it still makes sense to bump the patch version -- my understanding of our policy is that any changes to src or test get a patch bump. It doesn't really cost us anything, so might as well 🤷

@sethaxen sethaxen merged commit eb10848 into JuliaDiff:master Dec 6, 2020
@sethaxen sethaxen deleted the symmetricreorg branch December 6, 2020 12:18
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.

3 participants