The slicing stuff is closely married to the PDL Core internals. Perhaps Craig who wrote the range related stuff might currently be the best source of info.

It might also help if you spell out to us what kind of slice you are after. There are typically several ways to attack this...

Christian

On 18/11/2009, at 9:57 AM, David Mertens wrote:

I have a slicing operation that's really tedious to do at the perl level. I thought to myself, "It can't be that hard to write a PP'd slicing function. Then I looked at slices.pd. Holy cow. (Incidentally, if I ever get numerical regular expressions in place, the slice I need to perform at the moment would be super easy to specify. But, it's barely more than a specification at the moment...)

I know that slicing operations are not documented, but where can I find decent example code? Are there any good test files that check how PP processes slicing operations? At the moment, slices.pd and the PP.pm appear to be my only sources of information on the topic.

Thanks.
David

_______________________________________________
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