See attached sample files. Both extracted and slightly modified from PDL::PP
pod.

After you do the typical make install process, you should be able to

perldl> use PDL::Lib::Add

perldl> $a = sequence 10

perldl> p $a->add(1)
[1 2 3 4 5 6 7 8 9 10]


Best,
Maggie


On Fri, Aug 27, 2010 at 4:11 PM, P Kishor <[email protected]> wrote:

> On Fri, Aug 27, 2010 at 3:03 PM, Maggie X <[email protected]> wrote:
> > Welcome to PDL::PP :) :)
>
>
> Yeah, I guessed so. I guess my guarded question was -- how easy or
> difficult is this PP-thing? Do I have to know C? I hope not, else I am
> creamed.
>
> Is there a tute? Is there a "hello world" of PDL::PP?
>
> >
> > Unfortunately http://pdl.perl.org/PDLdocs/PP.html seems to be down at
> the
> > moment. You can perldoc it though.
> >
>
>
> Thanks for confirming that. Clifford said it was me, not the
> internets. I am sure it is not me, it is the internets. I don't get
> malware (did I speak too soon?). PDL web site is doing funky things...
> opening up random web pages, giving 404s, giving sf.net's bare docs
> page, etc.
>
>
> >
> > Best,
> > Maggie
> >
> >
> > On Fri, Aug 27, 2010 at 3:35 PM, P Kishor <[email protected]> wrote:
> >>
> >> 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
> >
> >
>
>
>
> --
> 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
> =======================================================================
>

Attachment: add.pp
Description: Binary data

Attachment: Makefile.PL
Description: Perl program

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

Reply via email to