What if I wanted to use Clojure for scientific computing, and in particular for doing linear algebra and matrix computations a la MATLAB?
What would my options be for representing matrices, not to mention, especially, MULTIDIMENSIONAL ARRAYS? Would java arrays be the way to go, or nested vectors? I don't like the nested vector solution too much, but to be honest, there really doesn't seem to be an adequate solution to this problem at the moment. For instance, once you have a multidimensional array (whatever kind it is) you can't, I believe, access any property of that object at runtime to know its rank and dimensions, like you can do with MATLAB or Scientifc Python (NumPy), or other similar languages. And slicing, such as a[2:20:4, 1:9:3], which means every element in a with indices that go from start to finish with a certain step, seem to be problematic. Actually the whole buiseness of having to deal with immutable (and lazy) data structures appears to make computing with matrices and multidimensional arrays a lot more difficult. Maybe this is just an impression. Opinions? Does Rich intend to address this issue of having multidimensional arrays (for scientific computing purposes) sooner or later? Thanks. Rock --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---