> 1) What is the role of the first argument to PersistentMatrix/create?  
> It seems that anything else than (int-array [1]) leads to an error.

Though I can't say I've thoroughly tested this, the intended
functionality is that you provide a nested structure and you specify
the shape of the units with the first argument.  For example, if I
provide a 8x10x2 nested structure that's intended to be a complex
matrix, I would put an (int-array [2]) in the first argument and the
result should be an 8x10 data structure with 2x1 dimensional units.  I
intended that an exception be thrown if the unit shape doesn't match
the structure of the last few dimensions.

>
> 2) Shapes and indices are all int, rather than long. This excludes  
> really big arrays. Is there a reason for this choice other than  
> saving space?

I used ints because I don't think java arrays can be indexed with
longs.  I could theoretically back the data structures with more than
one array, but the maximum index is defined by the int, I think.

> PS: I am using PersistentMatrix rather successfully in reading data  
> from HDF5 files!

Exciting!  I was also taking a look at the NetCDF format.  It looks
interesting as well.
--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to