Hello, Francesco. > Just FYI, you might want to look into C++ expression templates - they > might allow you to retain the convenient notation with no overhead.
I know about expression templates, but even with templates sometimes creation of temporary is the only way to calculate value of a complex expression like "x = ((a+b)*(c+d)-e)/(f+3)". Am I wrong? ALGLIB is full of code like this. But it is possible to generate less human-readable, but more efficient code, which will operate with numbers stored in a stack data structure. Code like this will be hard to read (something like assembly code or p-code, but in C++), but, from the other side, it should be very efficient. -- With best regards, Sergey mailto:[email protected] -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
