[Pdl-general] Generating a vector of random integers

2018-04-06 Thread William Schmidt
Hello Piddlers, I am moving from R to PDL, with tons of experience with Perl, lots with R but zero with PDL, so this is a pretty basic question. I can see from the PDL Book that PDL is very sophisticated, with much more functionality than I will ever use, but I want to master basic PDL to

Re: [Pdl-general] Generating a vector of random integers

2018-04-08 Thread William Schmidt
and > take the floor to get integers on [0,7]. The outermost operation indexes > $vec with the corresponding random value. Since there are three 1’s, 1 is > three times as likely in the output. > > Does that work? > > Best, > Craig > > > > On Apr 6, 2018, a

Re: [Pdl-general] History list and command editing in perldl

2018-04-13 Thread William Schmidt
rot. Try > installing Term::ReadLine::Gnu. > > On Apr 13, 2018, at 3:14 PM, William Schmidt <t.william.schm...@gmail.com> > wrote: > > Hello piddlers, > > *perldl* is one great prototyping tool, and I am making great progress > understanding and mastering PDL running it in ma

Re: [Pdl-general] History list and command editing in perldl

2018-04-13 Thread William Schmidt
nstalling Term::ReadLine::Perl which > is a pure perl implementation of the readline > capability. I use it on the windows PDL since > there is no GNU readline for microsoft com windows. > > --Chris > > On 4/13/2018 18:15, William Schmidt wrote: > > Prog

Re: [Pdl-general] History list and command editing in perldl

2018-04-13 Thread William Schmidt
lly install the Gnu Readline library. It’s becoming > enough of a pain in the butt to get installed, that an Alien::ReadLine > might be called for... > > On Apr 13, 2018, at 3:23 PM, William Schmidt <t.william.schm...@gmail.com> > wrote: > > Hmm, > > Tried that. >

Re: [Pdl-general] Generating a vector of random integers

2018-04-08 Thread William Schmidt
Craig, Just discovered PDL::NiceSlice which explains that slicing *$vec->(...);* syntax I asked about. Will On Sun, Apr 8, 2018 at 12:33 PM, William Schmidt < t.william.schm...@gmail.com> wrote: > Craig, > > Thank you, it works but first I had to pick those method calls a

[Pdl-general] pdlcore.c segmentation fault starting in at least PDL 2.060

2023-07-27 Thread William Schmidt
I teach an undergraduate college course in Applied Linear Algebra in which I have been using PDL 2.026, as well as R and Python, these three to encourage an awareness that *TIMTOWTDI*. My students may use Linux or macOS and I personally use High Sierra, 10.13.6. My Perl was 5.30.2 managed with

Re: [Pdl-general] pdlcore.c segmentation fault starting in at least PDL 2.060

2023-07-27 Thread William Schmidt
rsion of clang. > > > > I am fairly sure you can get the latest GCC, and most likely the latest > clang as well, on your machine by using Homebrew, and you will probably > benefit from also installing Homebrew perl as well. There isn’t yet a > recipe for PDL, perhaps you’d like