Opened 3 years ago
Closed 2 years ago
#21321 closed enhancement (fixed)
Cleanup in sparse modules
Reported by:  Bouillaguet  Owned by:  

Priority:  major  Milestone:  sage7.4 
Component:  linear algebra  Keywords:  sd75 
Cc:  cpernet  Merged in:  
Authors:  Charles Bouillaguet  Reviewers:  Jeroen Demeyer 
Report Upstream:  N/A  Work issues:  
Branch:  ce4de73 (Commits)  Commit:  ce4de7305ff7bf9ddf91fb223f2884b19ce475b9 
Dependencies:  Stopgaps: 
Description (last modified by )
This ticket removes all the .pxi
files in sage/modules
, and replaces them by proper .pxd/pyx
files.
It adds no new functionnality, but seems to be required to have a C++ binding to linbox.
Change History (23)
comment:1 Changed 3 years ago by
 Branch set to u/Bouillaguet/module_pxi_must_die
comment:2 Changed 2 years ago by
 Cc cpernet added
 Commit set to 0d50a4e7953836d11d1baea347087b3a81bae167
 Keywords sd75 added
comment:3 Changed 2 years ago by
 Commit changed from 0d50a4e7953836d11d1baea347087b3a81bae167 to a32caee5c84af293b597434ef5c4449e722ca28e
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
1126d8a  forgot module_list.py

fd3ee8c  convert modules/vector_rational_sparse.pxi

b6bc054  Merge commit 'fd3ee8c9a45b75c5384546166496622d6a860f15' into develop

e5c8348  fix vector_rational_sparse

a31fc69  convert module/vector_integer_sparse.pxi

855a549  Merge commit 'a31fc697619288b58799a3edb80d41bf070c3d50' into develop

ef6eece  fixed vector_integer_sparse

f0c88db  convert modules/vector_modn_sparse.pxi

2d7ee59  Merge branch 'modules_pxi_must_die_hard' into develop

a32caee  fixed vector_modn_sparse

comment:4 Changed 2 years ago by
comment:5 Changed 2 years ago by
 Description modified (diff)
 Priority changed from minor to major
 Status changed from new to needs_review
comment:6 Changed 2 years ago by
 Commit changed from a32caee5c84af293b597434ef5c4449e722ca28e to 206e794bd92d294d917d4b503a654e13776b5b91
Branch pushed to git repo; I updated commit sha1. New commits:
206e794  Fixed a remaining reference to vector_modn_sparse.pxi

comment:7 Changed 2 years ago by
I might review this.
comment:8 Changed 2 years ago by
One thing: you have a very complicated git history here. Can you squash it to just 1 commit?
comment:9 Changed 2 years ago by
 Status changed from needs_review to needs_work
cysignals stuff should only be in .pyx files.
comment:10 Changed 2 years ago by
More generally, .pxd files should only cimport/include what they really need.
comment:11 followup: ↓ 15 Changed 2 years ago by
Did you check for conflicts with #17635?
comment:12 Changed 2 years ago by
 Commit changed from 206e794bd92d294d917d4b503a654e13776b5b91 to 2036d22686f91b6d6155265a7615be2f947f797d
comment:13 followup: ↓ 14 Changed 2 years ago by
 Status changed from needs_work to needs_review
Thanks for your time, Jeroen. I fixed the extra imports in .pxd files, and sqashed all that into a single commit. Up for review again.
comment:14 in reply to: ↑ 13 Changed 2 years ago by
 Reviewers set to Jeroen Demeyer
 Status changed from needs_review to needs_work
Replying to Bouillaguet:
and sqashed all that into a single commit.
I think you did something wrong, since I see two unrelated commits. In any case, you should rebase on top of sage7.4.beta2 now.
comment:15 in reply to: ↑ 11 Changed 2 years ago by
comment:16 Changed 2 years ago by
Since you're moving files anyway, could you move src/sage/modules/binary_search
to src/sage/data_structures/binary_search
. That code has nothing to do with modules.
comment:17 Changed 2 years ago by
 Commit changed from 2036d22686f91b6d6155265a7615be2f947f797d to b7066138d2cf0730d4eda3af2c1ad315d1dc9e9b
Branch pushed to git repo; I updated commit sha1. New commits:
b706613  Convert .pxi files in sage/modules/ into proper .pxd/.pyx files

comment:18 Changed 2 years ago by
 Commit changed from b7066138d2cf0730d4eda3af2c1ad315d1dc9e9b to ce4de7305ff7bf9ddf91fb223f2884b19ce475b9
Branch pushed to git repo; I updated commit sha1. New commits:
ce4de73  moved sage.modules.binary_search to sage.data_structures.binary_search

comment:19 Changed 2 years ago by
 Status changed from needs_work to needs_review
Jeroen, the ticket is ready for review (again).
comment:20 Changed 2 years ago by
Did you run full doctests with this latest patch?
comment:21 Changed 2 years ago by
No. I'm counting on the patchbot...
comment:22 Changed 2 years ago by
 Status changed from needs_review to positive_review
Tests are good.
comment:23 Changed 2 years ago by
 Branch changed from u/Bouillaguet/module_pxi_must_die to ce4de7305ff7bf9ddf91fb223f2884b19ce475b9
 Resolution set to fixed
 Status changed from positive_review to closed
New commits:
removes .pxi files in sage/modules, replace by .pyx/pxd