I am enjoying all the fine tools that the masters have created. Like magic, with one command, I can apply the same function to millions of values.
Now, I am itching to hit my head against the wall. I want to write my own function that can be applied to all the values in a piddle. So, following the convention, I envision $pdl->func to apply to the elements in the entire piddle and $pdl->function to apply to all the elements in the specified dimension. These are not necessarily grouping functions that result in an (n-1) D piddle, but they are more like sqrt that applies to every element. Where do I begin? Do I have write this in C? Or can I write a function in Perl and PDL-ify it? -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
