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

Some mapreduce improvement #63

Merged
merged 5 commits into from
Jan 17, 2022
Merged

Some mapreduce improvement #63

merged 5 commits into from
Jan 17, 2022

Conversation

N5N3
Copy link
Contributor

@N5N3 N5N3 commented Jan 15, 2022

Seperated from JuliaLang/julia#43604.

That PR wants to make extrema rely on our mapreduce mechanism to fix NaN,0.0/-0.0 comparison.

I tried my best to keep the git histroy for easier review.

Note: This PR included some test change. I guess CI will keep failing there before we merge this. Is there a better way to handle this problem?

@codecov
Copy link

codecov bot commented Jan 15, 2022

Codecov Report

Merging #63 (f471cd5) into main (0611da1) will decrease coverage by 0.13%.
The diff coverage is 76.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #63      +/-   ##
==========================================
- Coverage   89.12%   88.99%   -0.14%     
==========================================
  Files           7        7              
  Lines        5694     5668      -26     
==========================================
- Hits         5075     5044      -31     
- Misses        619      624       +5     
Impacted Files Coverage Δ
src/higherorderfns.jl 96.42% <ø> (-0.07%) ⬇️
src/sparsevector.jl 93.50% <65.00%> (-0.38%) ⬇️
src/sparsematrix.jl 94.96% <90.62%> (-0.41%) ⬇️
src/SparseArrays.jl 100.00% <100.00%> (+88.88%) ⬆️
src/abstractsparse.jl 31.03% <0.00%> (+3.44%) ⬆️

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 205b770...f471cd5. Read the comment docs.

Copy link
Contributor

@tkf tkf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think it's ready to be merged once it's clarified at what condition the commented out tests can be enabled.

test/higherorderfns.jl Outdated Show resolved Hide resolved
test/higherorderfns.jl Outdated Show resolved Hide resolved
test/higherorderfns.jl Outdated Show resolved Hide resolved
test/higherorderfns.jl Outdated Show resolved Hide resolved
test/higherorderfns.jl Outdated Show resolved Hide resolved
@N5N3
Copy link
Contributor Author

N5N3 commented Jan 16, 2022

Just notice that we'd better enable related change when testing 43604.
So I just skip the tests if !isdefined(Base, :_extrema_rf).

Copy link
Contributor

@tkf tkf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ViralBShah @KristofferC Can you merge this? (Who has the merge bit?)

@ViralBShah ViralBShah merged commit fc401ba into JuliaSparse:main Jan 17, 2022
@ViralBShah
Copy link
Member

@tkf I've added this repo to the list of repos that committers can write to. You should be able to merge in the future. Thanks.

@N5N3 N5N3 deleted the extrema branch January 17, 2022 08:27
tkf added a commit to JuliaLang/julia that referenced this pull request Jan 18, 2022
* Define `extrema` using `mapreduce`; support `init`

* Fix tests for SparseArrays

* API clean and export `extrema!`

* Re-implement `reducedim_init` for extrema

* Merge `master` to pull in JuliaSparse/SparseArrays.jl#63

* Mark `BigInt` tests as broken

Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
Co-authored-by: Simeon Schaub <simeondavidschaub99@gmail.com>
Co-authored-by: Takafumi Arakaki <aka.tkf@gmail.com>
Co-authored-by: Tim Holy <tim.holy@gmail.com>
N5N3 added a commit to N5N3/julia that referenced this pull request Jan 24, 2022
* Define `extrema` using `mapreduce`; support `init`

* Fix tests for SparseArrays

* API clean and export `extrema!`

* Re-implement `reducedim_init` for extrema

* Merge `master` to pull in JuliaSparse/SparseArrays.jl#63

* Mark `BigInt` tests as broken

Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
Co-authored-by: Simeon Schaub <simeondavidschaub99@gmail.com>
Co-authored-by: Takafumi Arakaki <aka.tkf@gmail.com>
Co-authored-by: Tim Holy <tim.holy@gmail.com>
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
* Define `extrema` using `mapreduce`; support `init`

* Fix tests for SparseArrays

* API clean and export `extrema!`

* Re-implement `reducedim_init` for extrema

* Merge `master` to pull in JuliaSparse/SparseArrays.jl#63

* Mark `BigInt` tests as broken

Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
Co-authored-by: Simeon Schaub <simeondavidschaub99@gmail.com>
Co-authored-by: Takafumi Arakaki <aka.tkf@gmail.com>
Co-authored-by: Tim Holy <tim.holy@gmail.com>
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
* Define `extrema` using `mapreduce`; support `init`

* Fix tests for SparseArrays

* API clean and export `extrema!`

* Re-implement `reducedim_init` for extrema

* Merge `master` to pull in JuliaSparse/SparseArrays.jl#63

* Mark `BigInt` tests as broken

Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
Co-authored-by: Simeon Schaub <simeondavidschaub99@gmail.com>
Co-authored-by: Takafumi Arakaki <aka.tkf@gmail.com>
Co-authored-by: Tim Holy <tim.holy@gmail.com>
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