Scott, you might want to look at the following link. http://www.jsoftware.com/jwiki/BrianSchott/code/cluster
On Mon, Dec 1, 2014 at 2:08 AM, Scott Locklin <[email protected]> wrote: > So, I have this pile of C code that uses rank-2 arrays as double**, then > subsets them with loops like "array[i][j]." I'm so used to the J FFI > working flawlessly on C code (most of which sensibly uses double*), I > forgot that a J-array doesn't work like that, and was kind of shocked when > the code dumped core on me. > > Is there any magic J incantation I can do to my arrays so that C can more > easily digest them, or should I just write a C macro to dereference the > double pointer? > > This is for hierarchical clustering, if anyone is interested in that sort > of thing (a most un-J like algorithm, sadly). Maybe 2-d wavelets as well. > > -SL > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- (B=) <-----my sig Brian Schott ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
