Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Speed up polynomial mappings #4124
Speed up polynomial mappings #4124
Changes from 16 commits
6fd471a
70279f9
4304881
a96cf36
b6a3c40
d1f90e3
f98f198
570e769
2d83dd6
9a59613
4e5b8e7
f005ce1
0c65e56
8944bb2
90dc095
5d61dda
7ad7f39
4d17d35
f7289e8
9092a8a
733b8f1
1892dab
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 57 in src/Rings/MPolyMap/MPolyAnyMap.jl
Codecov / codecov/patch
src/Rings/MPolyMap/MPolyAnyMap.jl#L54-L57
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be an epsilon faster
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One should be able to use the "same" vector
ee
for the whole loop as it gets copied anyway. I try to optimize this further.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An undefined vector will not work. We need the zeroes.
Check warning on line 221 in src/Rings/MPolyMap/MPolyRing.jl
Codecov / codecov/patch
src/Rings/MPolyMap/MPolyRing.jl#L221
Check warning on line 2771 in src/Rings/mpolyquo-localizations.jl
Codecov / codecov/patch
src/Rings/mpolyquo-localizations.jl#L2771
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, but maybe you want the following here?
And also below with
exponent_vectors
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw the
AA
-qualifier elsewhere, too. But I thought, it was redundant. Isn't it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. It is the difference between painfully slow and fast when iterating over coefficients/exponents. There used to be an explanation in the documentation, but it was removed for reasons I don't know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #4168