#4984: Clean up __getitem__ for matrices once Cython is smarter
----------------------------+-----------------------------------------------
 Reporter:  craigcitro      |       Owner:  was          
     Type:  defect          |      Status:  new          
 Priority:  minor           |   Milestone:  sage-wishlist
Component:  linear algebra  |    Keywords:               
----------------------------+-----------------------------------------------
 So we currently use several Python/C API calls to speed up the
 `__getitem__` method in `sage/matrix/matrix0.pyx`. In particular, we do
 several typechecks against standard Python types, and replacing generic
 `PY_TYPE_CHECK` calls with specific Python/C API calls (like
 `PySlice_Check`) provides a significant speedup. Once Cython can do all
 these things for us, we should clean up `__getitem__` so that it's more
 readable/portable.

 Alternatively, if such functionality still doesn't exist in Cython, one
 should feel free to go, implement that functionality, get it merged,
 create a new Cython spkg, and then make these changes. `:)`

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4984>
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