Don't ask to ask, just ask | |
PerlMonks |
Re: double **by samtregar (Abbot) |
on Jul 02, 2008 at 21:15 UTC ( [id://695202]=note: print w/replies, xml ) | Need Help?? |
There isn't one. You've got a couple options that I know of. First, you could write pull the NVs out of your AVs and put them into a new double [][] that you New() and Safefree() on the spot. That will use lots of memory if your array is big. Alternately you could have your Perl code keep your data in packed C arrays to begin with, using something like Tie::CArray. Then you can write a little XS to put out the double** from that and pass it to your C code.
-sam
In Section
Seekers of Perl Wisdom
|
|