I have no source code in front of me but from memory there should be  
an example how to do this in the definition of 'which'. You can set  
the size from PP with a special macro. Have a look and see if it works.

Christian

On 30/04/2008, at 7:19 AM, Diab Jerius wrote:

> I'm coding up a bit of PP code to adaptively bin a 1D distribution.   
> The
> bin widths will be varied to achieve a set signal to noise ratio.  The
> key point is that the number of bins won't be known until after the
> binning is complete.
>
> My problem is that I don't know how to specify an output piddle whose
> size isn't known until after the code is run.  The signatures seem to
> require output piddles to either be scalars or have dimensions based
> upon an input piddle.
>
> Currently I've wrapped the PP code in a Perl routine which resizes the
> piddles before returning to the calling routine, which is pretty  
> grotty.
> Is there any clean way of doing this in the PP code?
>
> In doing this I've come up against another unknown: is it possible to
> specify that a PP output parameter is a Perl scalar?  I need to pass  
> the
> number of bins from the PP code to the Perl code so that it knows the
> final piddle size, and the only way to do this seems to be via a  
> scalar
> piddle.
>
> Thanks,
> Diab
>
>
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

--
Christian Soeller PhD   Dept. of Physiology  +64 9 3737599 x82770
University of Auckland  Auckland, New Zealand  fax +64 9 3737499



_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to