Expression templates for arithmetic operations in python
David Welch
postmaster at ristretto4u.f9.co.uk
Mon Oct 10 07:36:12 EDT 2005
More information about the Python-list mailing list
Mon Oct 10 07:36:12 EDT 2005
- Previous message (by thread): Changing an AST
- Next message (by thread): socketServer questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, I am new to python so I thought I would write a quick and simple vector/matrix multiplication class in c++ and use it in python. Is it possible to overload the operators in python such a way that a tree of calculations is built which I can then pass to an evaluator written in c++ to calculate the tree with max efficiency. My thought train is that the args are passed to c++ only once and so there is less overhead in unpacking them. Is there are an existing implementation in python which does this? What is the best way to implement this? Thanks for your help. David
- Previous message (by thread): Changing an AST
- Next message (by thread): socketServer questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list