-
Notifications
You must be signed in to change notification settings - Fork 14
Unify vector-like structs #214
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
Open
JoeyBF
wants to merge
32
commits into
SpectralSequences:master
Choose a base branch
from
JoeyBF:fp_unify_3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
e42e801
WIP with const alignment and transparent repr
JoeyBF ed71aca
Simple docs
JoeyBF 5698120
Factor out `FqVector::is_empty`
JoeyBF ba9d9f0
Factor out `FpVector::prime`
JoeyBF 63233aa
Factor out `FqVector::slice`
JoeyBF aeed08f
Factor out `FqVector::slice_mut`
JoeyBF 55e6c4d
Factor out `FqVector::entry`
JoeyBF c2c1252
Factor out `FqVector::set_entry`
JoeyBF dc93541
Factor out `FqVector::add_basis_element`
JoeyBF 3152201
Move limb methods to `FqVectorBase`
JoeyBF 8040c20
Factor out `FqVector::set_to_zero`
JoeyBF db05728
Factor out `FqVector::is_zero`
JoeyBF 0f3c789
Factor out `FqSliceMut::reduce_limbs`
JoeyBF f50a543
Factor out `FqVector::scale`
JoeyBF 80bc55d
Remove unnecessary `.as_slice`s
JoeyBF 417ef3f
Factor out `FqVector::as_slice`
JoeyBF e341997
Factor out `FqVector::as_slice_mut`
JoeyBF 0a36f21
Factor out `FqVector::iter`
JoeyBF 4e656f1
Factor out `FqVector::iter_nonzero`
JoeyBF 636ee4b
Factor out `Display` impl for vectors
JoeyBF b07ff73
Implement `From<&'a FqVectorBase>` for `FqSlice<'a>`
JoeyBF 2867ecb
Implement `From<&'a mut FqVectorBase>` for `FqSliceMut<'a>`
JoeyBF 22803a6
Use `Repr` in `fp_wrapper` too
JoeyBF d416a86
Factor out immutable methods to `FpVectorBase`
JoeyBF 81ad0ae
Factor out mutable methods
JoeyBF e26d5be
Unify `From` implementations for slice types
JoeyBF 870fe7a
Unify `Display` implementations
JoeyBF cec5fbb
Extend `Vec`'s `From<&FpVector>` implementation
JoeyBF 2b4061f
Relax requirements of `FqVectorBase` definition
JoeyBF e55feb7
Make `FpVectorBase` an enum in all feature combinations
JoeyBF 8455b53
Fix lint
JoeyBF 0e27e28
Clean up
JoeyBF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: SpectralSequences/sseq
Length of output: 4511
🏁 Script executed:
Repository: SpectralSequences/sseq
Length of output: 1617
🏁 Script executed:
Repository: SpectralSequences/sseq
Length of output: 7329
🏁 Script executed:
Repository: SpectralSequences/sseq
Length of output: 1864
🏁 Script executed:
Repository: SpectralSequences/sseq
Length of output: 3272
🏁 Script executed:
Repository: SpectralSequences/sseq
Length of output: 11424
Update line 198 to use the new
.restrict()API.Line 198 should use
input.restrict(input_start, input_end)to be consistent with line 367. TheFpSlice::slice()method does not exist; the new unified API isFpSlice::restrict().🤖 Prompt for AI Agents
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.
Is it not already using restrict?
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.
🧩 Analysis chain
🏁 Script executed:
Length of output: 631
@JoeyBF, you're right that line 367 (shown in the diff) is already using
restrict()— that change looks good!However, line 198 still uses the old
.slice()method:This should be updated to use
.restrict()as well, to match the new unified API used at line 367: