On Nov 7, 2008, at 7:13, Mark H. wrote: > Does the JNI require copy-in / copy-out for arrays of floating-point > numbers?
The JNI requires the C code to call JNI routines for converting the Java array to a native array and back. Whether or not a copy is made depends on the JNI implementation. > There are a number of Python-based projects to do what you mentioned > (link HPC libraries in Fortran or C to a higher-level language), so > it's not impossible. It's just a lot of tedious work for some unlucky > coders. Python has a much nicer C interface than Java. The NumPy library provides an array implementation whose underlying data structure can be used directly as a C/Fortran array. No copying, no conversion, and there are lots of tools that do much of the unpleasant work. Konrad. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---