[Tutor] BLAS Implementation on Python
knacktus at googlemail.com
Mon Mar 7 14:28:56 CET 2011
Am 07.03.2011 01:50, schrieb Mahesh Narayanamurthi:
> I am thinking of implementing a BLAS package in pure python. I am
> wondering if this is a good idea.
I don't think so. Usually people write extensions to the CPython
implementation (when talking about performance, we need to talk about
Python implementations like CPython, Jython or PyPy) in C to do high
performance stuff. Pure CPython is (depeneding on the problem)
magnitudes slower than C.
Also, there's NumPy SciPy. Check those out.
More comments below ...
My design goals are:
>  Efficient manipulation of Matrices and
> Vectors using pure python objects and
> python code.
No, not efficient in terms of performance.
>  Targetted to run on Python3
Good idea. NumPy and SciPy will be (are already?) ported.
>  Extensive use of defensive programming
>  To serve as a reference design for
> future High Performance Code in Python
The future of High Performance Python is probably PyPy.
>  To serve as a reference material in
> classroom courses on numerical computing
> or for hobbyist programmers
Good idea, as Python is clear and nice to read.
> Mahesh Narayanamurthi
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
More information about the Tutor