yes, in a nutshell what you said is probably correct.
However, I'm not sure whether mtj or netlib can dynamically switch
between native and Java code. My impression was that it either loads
the native code or the Java code. Also, the point at which it makes
sense to use the native routines is much lower than you would think.
In the end, it depends a lot on what kind of application you have in
mind, and the typical sizes of your vectors, and the typical
operations. If it's mostly small (n < 10) vectors and operations like
vector addition or matrix-vector multiplication then you'd be fine
with a pure Java solution. If you have larger matrices (say 100x100)
and are also looking into more complex operations like
eigendecompositions, SVD, QR, etc., then the native code will be much
much faster.
Finally, jblas also doesn't use native code for all operations. For
operations where the number of operations is the same as the number of
elements, the operations are computed in Java because it's much faster
than first copying the stuff.
My recommendation would be to think about what kinds of operations you
are interested in and run a few benchmarks between the candidates.
This will also give you a bit of a feel for the interfaces and whether
you like them or not. With jblas I tried to run a very minimalistic
approach without many interfaces, and using a lot of overloading to
make it easy to express operations. Other libraries have different
approaches. The downside of jblas is that there is little
interoperability between float and double matrices, which is probably
ok because you'll just use either one anyway (meaning it's not that
easy to add a double matrix to a float matrix, for example).
Hope this helps,
-M
> --
> You received this message because you are subscribed to the Google Groups
> "jblas-users" group.
> To post to this group, send email to jblas...@googlegroups.com.
> To unsubscribe from this group, send email to
> jblas-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/jblas-users?hl=en.
>
--
Dr. Mikio Braun, Beckerstr. 11, 12157 Berlin
Privat: 030 / 42 10 56 42, Büro: 030 / 314 78627, Handy: 0172 / 97 45 676