[Shootout-list] regarding python

Åsmund Ødegård aasmund@simula.no
Fri, 17 Sep 2004 13:39:27 +0200


--=-8Im5RIwEzCA4OTzUcXin
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable


Hi,

I'm new to this list, so please forgive if you have already discussed this!=
 I
have scanned the archive mbox, though.

I checked the python matrix-multiply example, and found that it is not usin=
g
the NumPy extension to Python. I think this is not very fair, as all of us =
who
want to do some number crunching with Python will use NumPy, it is almost a=
n
integrated part of the language.

If you like to include/change the python code on the web on this, I include=
 a
script - it should be fast than the original version!

mvh,
--=20
[simula.research laboratory]
                 =C3=85smund =C3=98deg=C3=A5rd
                 phone: +4767828291 / +4790069915
                 http://www.simula.no

--=-8Im5RIwEzCA4OTzUcXin
Content-Disposition: attachment; filename=numpy_matrix.py
Content-Type: application/x-python; name=numpy_matrix.py
Content-Transfer-Encoding: base64

IyEvdXNyL2Jpbi9lbnYgcHl0aG9uCiMKIwojIEF1dGhvcjogxXNtdW5kINhkZWflcmQKIyAgICAg
ICAgIFNpbXVsYSBSZXNlYXJjaCBMYWJvcmF0b3J5ICgyMDA0KQojCiMgICAgICAgICBtb2RlbGVk
IGFmdGVyIHRoZSBvcmlnaW5hbCBtYXRyaXgucHkgYXQgdGhlIHNob290b3V0LgoKaW1wb3J0IHN5
cwpmcm9tIG51bWFycmF5IGltcG9ydCAqCgpzaXplID0gMzAKCmRlZiBta21hdHJpeChyb3dzLGNv
bHMpOgogICAgbSA9IGFycmF5KFtbaSsoai0xKSpyb3dzIGZvciBpIGluIHhyYW5nZSgxLHJvd3Mr
MSldIGZvciBqIGluIHhyYW5nZSgxLGNvbHMrMSldKQogICAgcmV0dXJuIG0KCgpkZWYgbW11bHQo
bTEsbTIpOgogICAgcmV0dXJuIGRvdChtMSxtMikKCgpkZWYgbWFpbigpOgogICAgdHJ5OiBpdGVy
ID0gaW50KHN5cy5hcmd2WzFdKQogICAgZXhjZXB0OiBpdGVyID0gMQoKICAgIG0xID0gbWttYXRy
aXgoc2l6ZSxzaXplKQogICAgbTIgPSBta21hdHJpeChzaXplLHNpemUpCiAgICBmb3IgaSBpbiB4
cmFuZ2UoaXRlcik6CiAgICAgICAgbW0gPSBtbXVsdChtMSxtMikKICAgIHByaW50IG1tWzAsMF0s
IG1tWzIsM10sIG1tWzMsMl0sIG1tWzQsNF0KCm1haW4oKQoK

--=-8Im5RIwEzCA4OTzUcXin--