-
-
Notifications
You must be signed in to change notification settings - Fork 454
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
Matrix from Matrix_integer_dense() blows up (Dup of 779 for formatting) #781
Comments
comment:1
And, by '799', I mean '779' |
comment:2
I will look into this, valgrind might turn up something interesting. Cheers, Michael |
comment:4
Interestingly enough this works under valgrind:
I will have a look at the logs and hopefully fix this during Bug Day 4. Cheers, Michael |
comment:5
There are a bunch of the following:
But I am not even sure if you are supposed to call the matrix constructor this way. I will investigate. Cheers, Michael |
comment:6
As is the code posted doesn't work:
If I call
it works, but I am not certain I get the whole picture here. In any case the code clearly states that it is for internal use only and the elements are not initialized:
So I would consider this invalid or wontfix. Any comments? Cheers, Michael |
comment:7
This ticket is invalid. In short, you should never ever use Matrix_integer_dense unless you know precisely what you are doing. If you want to make a matrix you either: This ticket falls into (3). You're diving into the internals of a C extension module and using a function that should never be used from the outside unless you really knows what you are doing. In particular, almost all Cython extension classes have a |
comment:9
OK, I'm happy with that explanation. I tripped over this during SD5, while fiddling with some ideas for Module code. I probably had imported a bunch of stuff that let me call this by accident :-}. |
If I create a matrix with Matrix_integer_dense(), and try to display it, sage blows chunks. It appears to happen inside the gmp library. This is with 2.8.5.1 on a Core 2 Duo (Mac OS X, 10.4.10).
Two different examples, printing the whole matrix:
and printing a single entry:
Component: linear algebra
Issue created by migration from https://trac.sagemath.org/ticket/781
The text was updated successfully, but these errors were encountered: