On Friday 03 August 2001 13:04, Evan Zane Macosko wrote:
> Hi everyone,
>
>
> I've got a large two dimensional matrix of float values--about 6000 rows
> and 1000 columns (the size will vary, but will always be two
> dimensional)--and I need to pass it from Perl to C to do some hefty
> mathematical computations. I can't seem to figure out how to pass it
> in--I tried passing in the reference to the array, and then assigning a C
> variable to that address, but Inline doesn't like that. Any suggestions?
> Also, I want to output a matrix (1000x1000) if possible.
>
Evan,
have you tried PDL ('IDL' for perl) - see http://pdl.perl.org/. It handles a
lot of the bother with perl <-> C conversions for numerical operations (at
the expense of learning yet another syntax)
Doug