Re: [Pdl-devel] naming conventions

2024-02-07 Thread Ingo Schmid via pdl-devel
Hi, I guess this is a NiceSlice thing, this one works in the pdl shell: $f=sub{$_[0]**2}; ... Ingo On 07.02.24 01:14, Luis Mochan wrote: On Tue, Jan 30, 2024 at 09:40:59PM -0600, Luis Mochan wrote: ...> On Mon, Jan 29, 2024 at 10:19:56PM -0500, David Mertens wrote: Hello Luis, Ever crafty

[Pdl-devel] PDL::Drawing::Prima

2024-05-23 Thread Ingo Schmid via pdl-devel
Hi, this module does not find Prima.so (from Prima). Makefile.PL needs to lock at Prima::Config::Config{dlname} and set the correct LIBS field. I failed to make it work. I got the parts necessary extracted, but make seems to ignore it. This results in unresolved symbols from Prima. Ingo Make

Re: [Pdl-devel] clump glitch

2024-05-28 Thread Ingo Schmid via pdl-devel
could not send mail. On 27.05.24 5:27 PM, Ingo Schmid wrote: Hi, $x->clump (1 .. -1) should work according to the docs, but it apparently doesn't. boundaries 0 ... ndims -1 work fine. pdl> help $k2 This variable is  Float D [2,772096,1,1,1,1,30,1,1,1,1,1] pdl> $k2= $k->clump(2 .. ($k->ndims-

[Pdl-devel] clump glitch

2024-05-28 Thread Ingo Schmid via pdl-devel
Hi, $x->clump (1 .. -1) should work according to the docs, but it apparently doesn't. boundaries 0 ... ndims -1 work fine. pdl> help $k2 This variable is  Float D [2,772096,1,1,1,1,30,1,1,1,1,1] pdl> $k2= $k->clump(2 .. ($k->ndims-1)) Best Ingo pdl> help $k2 This variable is  Float D [2,1,23

Re: [Pdl-devel] PDL::Drawing::Prima

2024-05-28 Thread Ingo Schmid via pdl-devel
--------------- *From:* Ingo Schmid via pdl-devel *Sent:* Thursday, May 23, 2024 1:05:37 PM *To:* pdl-devel ; perldl ; David Mertens *Subject:* [Pdl-devel] PDL::Drawing::Prima Hi, this module does not find Prima.so (from Prima). Makefile.PL needs to lock at Prima::Config::Config

Re: [Pdl-devel] clump glitch

2024-05-29 Thread Ingo Schmid via pdl-devel
error you’re showing is because dimensions are numbered in a zero-based way, so ndims (which is 14) will be the 15^th one, which is too big, as the error explicitly tells you. Best regards, Ed *From:* Ingo Schmid via pdl-

Re: [Pdl-devel] PDL::Drawing::Prima

2024-05-29 Thread Ingo Schmid via pdl-devel
fig::Config{libs}; What errors did you get? Are you on Ubuntu? Because I’m using Ubuntu, and building P:D:Prima here doesn’t need to link Prima - the dynamic linker takes care of it at runtime. Best regards, Ed From: Ingo Schmid via pdl-devel<mailto:

Re: [Pdl-devel] PDL::Drawing::Prima

2024-05-31 Thread Ingo Schmid via pdl-devel
code below? $hash{LIBS}[0] .= " $Prima::Config::Config{libs}" if $Prima::Config::Config{libs}; What errors did you get? Are you on Ubuntu? Because I’m using Ubuntu, and building P:D:Prima here doesn’t need to link Prima - the dynamic linker takes care of it at runtime.

Re: [Pdl-devel] .gitignore strangeness

2024-05-31 Thread Ingo Schmid via pdl-devel
Hi Jörg, this is  because they are generated from basic.pd, ufunc.pd, etc. See PDL::PP! It is a neat feature to generate code for all data types in both C and Perl level. It is not intuitive for newer folk, though. Ingo On 5/31/2024 9:49 PM, Jörg Sommrey wrote: Hi all, just realized that prin

Re: [Pdl-devel] project ordered sequence image

2024-10-25 Thread Ingo Schmid via pdl-devel
Dear Guillermo, there are a number of ways you can create your images from the N-image stack. If you want a series of individual images, you could do something like this for (my $ii (0..$imn->dim(3)-1)) { $im(,,,$ii;-)->wpic("image_$ii.png"); } If you want to combine the stack, a mip can be

[Pdl-devel] curl of vector

2024-11-19 Thread Ingo Schmid via pdl-devel
Hi, is there any implementations of calculating the curl of a vector field around? Best wishes Ingo ___ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel

Re: [Pdl-devel] curl of vector

2024-11-20 Thread Ingo Schmid via pdl-devel
with the same dims. You can do the partial differentiation numerically by some mv-ing and then diffover (https://metacpan.org/pod/PDL::Ufunc#diffover), then the notional i,j,k above obviously indicate the final components of curl vector at each point. More to follow after I've