Discussion: Introducing new operators for matrix computation
Moshe Zadka
moshez at math.huji.ac.il
Sun Jul 16 00:40:41 EDT 2000
On Sat, 15 Jul 2000, Huaiyu Zhu wrote:
> That is, instead of sinm(x) and sin(x) we can write
>
> sin(x) and sin(x.Element())
>
> But both functions still need to be implemented, and each function call
> would involve a member lookup, an initializsation and a type comparison.
Not if you implement
matpy.sin(x) as
x.__sin__()
--
Moshe Zadka <moshez at math.huji.ac.il>
There is no GOD but Python, and HTTP is its prophet.
http://advogato.org/person/moshez
More information about the Python-list
mailing list