From: Andreas K. <and...@we...> - 2004-10-01 14:04:58
|
Hi! I just came across an interesting technique for speeding up vector and matrix operations: expression templates This really cool technique uses C++ templates to parse expressions at compile time and (ideally) creates optimized code that can be close to what you can reach by writing hand optimized code for the given specific expression. See http://tvmet.sourceforge.net/introduction.html for details and a ready to use library for vector/matrix operations. Also we should think about the performance penalties ray++ might have because it uses polymorphism/virtual functions. I haven't really had a close look but I could image that there's some potential for performance optimization. There's a good paper that describes techniques for speeding up scientific C++ code: http://osl.iu.edu/~tveldhui/papers/techniques/ Andreas |