On Nov 8, 9:36 pm, CuppoJava <[EMAIL PROTECTED]> wrote:
> I'm rewriting my physics engine over from Java, which is number
> heavy.
> There's a lot of matrix multiplication and inversions.

May I ask if you wrote the Java numerics code yourself or whether you
used an existing library instead?

Also, are the matrices quite large or are they very small (like 3x3)?
It matters because for small matrices the main cost is temporary
object allocation, whereas for large matrices the matrix operations
themselves will probably consume most of the time (and optimizing
those is nontrivial enough that you should rely on existing
libraries).

btw "matrix inversion" does not mean "solving linear systems" (like
Ax=b) -- it means "finding the explicit inverse of the matrix" (like
A^{-1}), which you probably don't need to do unless your physics
engine handles quantum mechanics ;-)

mfh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to