[Python-Dev] graphics maths types in python core? (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sun Apr 5 00:11:55 CEST 2009
- Previous message: [Python-Dev] graphics maths types in python core?
- Next message: [Python-Dev] graphics maths types in python core?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greg Ewing <greg.ewing canterbury.ac.nz> writes:
Something I've suggested before is to provide a set of functions for doing elementwise arithmetic operations on objects that support the new buffer protocol. Together with a multidimensional version of the standard array.array type, this would provide a kind of "numpy lite" that you could use to build reasonably efficient vector and matrix types with no external dependencies.
Again, I don't want to spoil the party, but multidimensional buffers are not implemented, and neither are buffers of anything other than single-byte data. Interested people should start with this, before jumping to the higher-level stuff.
Regards
Antoine.
- Previous message: [Python-Dev] graphics maths types in python core?
- Next message: [Python-Dev] graphics maths types in python core?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]