I imagine you'll be better off with the flexibility and ease of nested vectors unless you have very specific performance needs (e.g. you need to pass the arrays frequently to third-party libraries that accept Java arrays, or for performance reasons you want to mutate them in place using amap etc.).
Even the latter need can now be satisfied with Clojure vectors and transients. Once Rich's par branch is merged into the master branch you''ll have access to very efficient forkjoin-enabled parallel operations (pvmap) on Clojure vectors. That's reason enough to use vectors, imo. If you want this now you can compile the current par branch yourself. It's on github. Garth On Mon, Oct 26, 2009 at 12:14 PM, Rock <rocco.ro...@gmail.com> wrote: > > Just one more thing. It's still not really clear to me if I am better > off using Java arrays (make-array ...) or clojure vectors especially > when dealing with multidimensional arrays. I know that if use Java > libraries such as Colt, I have no choice. But in general? What do you > think? > > On Oct 25, 5:33 am, Ahmed Fasih <wuzzyv...@gmail.com> wrote: > > > If all you need is a statistical or array-processing language like > MATLAB, > > > my frank view is you're best off staying in R, or Mathematica, or > MATLAB, or > > > Octave, or whatever... they're mature and great at what they do > (Mathematica > > > most of all ;-) ). The reason you might want to use Clojuratica or > Incanter > > > is if you're building applications that need Clojure's awesome features > in, > > > say, concurrency, *plus* array processing. > > > > Lisp/Clojure offers such a compelling advantage for software design of > > complex applied math algorithms over some of the systems you have > > named that I think it bowls over some long-suffering Matlab/R/Python > > users, who are inspired work in Clojure in spite of incomplete (but > > still surprisingly good) support for their specialized needs. > > Hopefully Clojure's flexibility will soon allow it to become a matrix- > > oriented language as well, if only to express linear-algebra-type > > ideas (which are stored under the hood in whatever format or system > > needed---Colt, CDF, Mathematica arrays even!). > > > > I wanted to let you know that probably for every person who asks about > > Clojure scientific computing, there's a number of others who are just > > trying to make it work for them! > > > > (By the way, Garth, great work on Clojuratica!) > > > --~--~---------~--~----~------------~-------~--~----~ 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 Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---