-
-
Notifications
You must be signed in to change notification settings - Fork 547
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
cleaning of linbox for dense integer matrices #22924
Comments
Branch: u/vdelecroix/22924 |
Commit: |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
(rebased on 8.0.b4) |
comment:10
Great.
|
Reviewer: Clément Pernet |
comment:12
Replying to @ClementPernet:
Thanks for having a look!
I think that Cython compilation fails otherwise (I am trying again right now on top of 8.0.beta4... will take some time since I need to recompile the whole Sage after playing with #22493).
The ticket only intends to clean
Is that what you want? |
comment:13
Replying to @videlec:
Ok sorry for the confusion. My remark indeed applies to the new |
comment:15
No dependency on #22886 anymore (it is needed for cylinbox but it is fine for this ticket). I cleaned the flint interface a bit more than what you asked for. |
Changed dependencies from #22886 to none |
comment:16
I was wrong (and you were right). There is still |
comment:17
By the way, I am adding tests and LinBox has trouble with the characteristic polynomial of the
Does it qualify as a bug? For now, I will add a special case in the interface LinBox/flint. EDIT: and it hangs forever for |
comment:18
For
However, I do not see where this actually happens in the code. Do you know what this is? |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits: |
comment:35
Also, I see some new code not directly related to the subject of the ticket (e.g. in |
comment:36
Replying to @ClementPernet:
I dropped it. It would be fine for me to use |
comment:37
Replying to @ClementPernet:
It is. |
comment:39
Let me try an explanation for this mess (which I agree should be simplified): Replying to @videlec:
I would have said: so as to deal with the degree of the 0 polynomial which is -1 and not size()-1=0
I assume because in Givaro (and the whole LinBox ecosystem), the container (here |
comment:40
Replying to @ClementPernet:
In LinBox you have
I see. This way is indeed more flexible. |
comment:41
Tell me if there are other improvements to be done on this ticket. |
comment:42
Replying to @videlec:
My mistake. Givaro actually resizes the 0 polynomial to an empty vector, so After a discussion with J-G. Dumas on the topic here are a few clarifications:
So it's fine to do it with
|
comment:43
Ok, the ticket is now fine for me. -> positive review. |
comment:44
Sorry, two minor documentation typos to be fixed in
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:47
Fine then, back to positive review. |
comment:48
Thanks for the review! |
Changed branch from u/vdelecroix/22924 to |
Various cleaning to the linbox interface (
sage.libs.linbox
) and Sage dense integer matrices (sage.matrix.matrix_integer_dense
).implement a more direct linbox/flint interface in
sage/libs/linbox/linbox_flint_interface.pyx
(supersedes part oflinbox-sage.C
inside linbox)remove all mpz pointers from
Matrix_integer_dense
(that is the attributesbint _initialized_mpz
,mpz_t * _entrie
andmpz_t ** _rows
) aswell as the associated constructors/destructors (
int _init_mpz(self)
,int _init_mpz_impl(self)
,int _init_linbox(self)
,void _dealloc_mpz(self)
)fix the following error
(see #22872 for the linbox task ticket)
CC: @ClementPernet @sagetrac-dlucas
Component: packages: standard
Keywords: linbox
Author: Vincent Delecroix
Branch/Commit:
0b082c2
Reviewer: Clément Pernet
Issue created by migration from https://trac.sagemath.org/ticket/22924
The text was updated successfully, but these errors were encountered: