
21 Jan
2008
21 Jan
'08
9:16 p.m.
On Monday 21 January 2008 04:25, Martin Lutken wrote:
The reason I have 2D, 3D, 4D vector and matrices is to support as fast as possible 2D/3D calcutations for use in computer games graphis and physiscs simulations where every cycle counts. I Don't think that any game-engine will ever use generic N-vector, N-matrix types like those in UBlas....
I don't see any reason having a generic interface has to impose any runtime overhead. In the worst case, you could make the dimension a template parameter and provide partial specializations for whichever dimensions you have specially optimized code for. -- Frank