google / mathfu

C++ math library developed primarily for games focused on simplicity and efficiency.
http://google.github.io/mathfu
Apache License 2.0
1.4k stars 188 forks source link

Support for double vectors/matrices (with SIMD)? #32

Open lasagnaphil opened 5 years ago

lasagnaphil commented 5 years ago

Although this library is geared more towards graphics / game development than numeric computation, I think double-typed SIMD vectors will be very useful for implementing various physics simulations (for example, a lot of the fluid simulations tend to use doubles instead of floats because of numerical stability.)

One caveat is that we would have to write special code for SIMD for this feature, as the library only provides SIMD wrapper operations for floats. Maybe if I have the time I would try working on it...