Ticket #12679 (new enhancement)

Opened 14 months ago

rewrite Matrix_modn_sparse and vector_modn_sparse code so that the modulus is 64-bit on 64-bit platforms

Reported by: was Owned by: jason, was
Priority: major Milestone: sage-5.10
Component: linear algebra Keywords:
Cc: Work issues:
Report Upstream: N/A Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

Right now the matrix modn sparse class uses ints to store entries. The basic reason is the code

cdef struct c_vector_modint:
    int *entries

in sage/modules/vector_modn_sparse_h.pxi. This should probably instead use the unsigned C99 type uint_fast64_t.

Note: See TracTickets for help on using tickets.