Boost logo

Boost :

From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2008-01-21 16:16:25


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



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk