I've opened https://trac.sagemath.org/ticket/32961 to deal with this.
At least we should check that the number of entries can be
handled by the current implementation.
On Thu, Dec 2, 2021 at 11:31 AM Dima Pasechnik wrote:
>
> On Thu, Dec 2, 2021 at 11:17 AM 'jonatha...@googlemail.com' via
> sage-
On Thu, Dec 2, 2021 at 11:17 AM 'jonatha...@googlemail.com' via
sage-devel wrote:
>
> FF = GF(next_prime(100))
> M = Matrix(FF, [[1, 2], [3, 4]])
> M.__init__??
>
> reveals that the indices are casted into a long. This might be the problem.
right, seems to be the right place
sage: M*N
56
FF = GF(next_prime(100))
M = Matrix(FF, [[1, 2], [3, 4]])
M.__init__??
reveals that the indices are casted into a long. This might be the problem.
Using Py_ssize_t or size_t might have been a better choice.
Jonathan
dim...@gmail.com schrieb am Mittwoch, 1. Dezember 2021 um 20:56:16 UTC+1:
>
On Wed, Dec 1, 2021 at 4:39 PM Anton Mellit wrote:
>
> When I create a very large matrix (the threshold may be 2^32 entries)
from a list of vectors, the elements are not copied over correctly.
> Here is a "small" example:
>
> FF = GF(next_prime(100))
> M = 7
> N = 8
> v1 = vector(FF, [