#4968: switch Matrix_modn_dense from ints to CPU longs
----------------------------+-----------------------------------------------
 Reporter:  malb            |        Owner:  was          
     Type:  enhancement     |       Status:  new          
 Priority:  major           |    Milestone:  sage-wishlist
Component:  linear algebra  |   Resolution:               
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by mabshoff):

 Replying to [comment:3 was]:
 > > How about "long long" across the board?
 >
 > Won't that have negative implications. For example, on a 32-bit machine
 all matrices will take twice as much memory to store, and all arithmetic
 will be an order of magnitude slower.  That certainly wouldn't make me
 happy!

 Well, assuming we will transparently switch over to another implementation
 (using gmpz's for example) we should use the "fast" integer type, i.e. 32
 bit ints and a 64 bit int type on 64 bit boxen. But my original point
 remains: On

  * 64 bit Solaris
  * 64 bit Windows

 sizeof(long) == sizeof(int) == 4, so using either a C99 type or some
 platform dependent typedef is what we need here to get optimum performance
 on all 64 bit platforms. Since we are already requiring C99 due to FLINT
 we might as well go for that solution.

 Cheers,

 Michael

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4968#comment:4>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to