Re: [Pdl-devel] conditional inline

2025-01-23 Thread Guillermo P. Ortiz
thub or similar, we can see what else you > could try) > > saludos, > Boyd > > On Wed, 22 Jan 2025 at 16:24, Guillermo P. Ortiz > wrote: > >> Hello again, >> I find some a not pretty solution using whereND >> >> >> $r=(zeroes(3,3)->ndcoords/2-pdl(0

Re: [Pdl-devel] conditional inline

2025-01-22 Thread Guillermo P. Ortiz
7;s > stupid but it works, it's not stupid." But I am interested to know if > whichND_both is helpful. > > Best regards, > Ed > > -- > *From:* Guillermo P. Ortiz > *Sent:* 22 January 2025 21:06 > *To:* Ed . > *Cc:* pdl-devel@lis

Re: [Pdl-devel] conditional inline

2025-01-22 Thread Guillermo P. Ortiz
2) > Because where_both does *not* work n-dimensionally; it takes ($data, > $mask), calls which_both on the mask (which for a multi-dimensional input > will broadcast), then indexes (using index1d) a flattened version of $data > with > that. > > Do those points make sense?

Re: [Pdl-devel] conditional inline

2025-01-22 Thread Guillermo P. Ortiz
>slice("(1)"),$rr->abs>=0.2) Then. modifying $r1.= f($r1) $r3.= f($r2,$r4) ... Perform back dataflow to $r that I am looking for Maybe a better solution is possible? Best regards El mié, 22 ene 2025 a las 12:39, Guillermo P. Ortiz () escribió: > Hello, > the

Re: [Pdl-devel] conditional inline

2025-01-22 Thread Guillermo P. Ortiz
these facts? Regards El mar, 21 ene 2025 a las 20:35, Guillermo P. Ortiz () escribió: > Hi Ed, > yes, just I was trying with where_both > But I get unexpected behaviour for me in 2D case > > 1) first in 1D > > pdl> $r=zeroes(3)->ndcoords/2-pdl(0.5) > > pdl

Re: [Pdl-devel] conditional inline

2025-01-21 Thread Guillermo P. Ortiz
ndarray, but instead do something on a $pdl->where(condition...). What do > you think? > > Best regards, > Ed > > -- > *From:* Guillermo P. Ortiz > *Sent:* 21 January 2025 19:07 > *To:* Ed . > *Cc:* pdl-devel@lists.sourceforge.net ; >

Re: [Pdl-devel] conditional inline

2025-01-21 Thread Guillermo P. Ortiz
For instance, I am trying with $r, like below $r=(zeroes(2*$N+1,2*$N+1)->ndcoords-pdl($N,$N))/(2*$N+1) Regards El mar, 21 ene 2025 a las 14:39, Guillermo P. Ortiz () escribió: > Yes Ed, you are right. > I want to perform different operations on $r > depending on its distance to a

Re: [Pdl-devel] conditional inline

2025-01-21 Thread Guillermo P. Ortiz
, but I'm > afraid I still have absolutely no idea what it is. Please help me help you! > > Best regards, > Ed > > -- > *From:* Guillermo P. Ortiz > *Sent:* 21 January 2025 01:19 > *To:* Ed . > *Cc:* pdl-devel@lists.sourceforge.net

Re: [Pdl-devel] conditional inline

2025-01-20 Thread Guillermo P. Ortiz
:-) > > Best regards, > Ed > > ------ > *From:* Guillermo P. Ortiz > *Sent:* 20 January 2025 23:35 > *To:* Ed . > *Cc:* pdl-devel@lists.sourceforge.net ; > perldl > *Subject:* Re: [Pdl-devel] conditional inline > > Thanks Ed, > Using ternary conditional expression > I

Re: [Pdl-devel] conditional inline

2025-01-20 Thread Guillermo P. Ortiz
$pdl->approx_artol(0.5, 0.2) > > Best regards, > Ed > > -- > *From:* Guillermo P. Ortiz > *Sent:* 20 January 2025 19:39 > *To:* pdl-devel@lists.sourceforge.net ; > perldl > *Subject:* [Pdl-devel] conditional inline > > Hello ! > >

[Pdl-devel] conditional inline

2025-01-20 Thread Guillermo P. Ortiz
Hello ! I am not sure, but maybe It is possible to do with perl PDL something like this? $ndarray= condition on $ndarray ? assign when true : assign when false for example: $x=zeroes(20)->xlinvals(0,1); $y=(all abs($x-0.5)<0.2)?$x**2:$x; Thanks in advance Regards -- Dr. Guill

Re: [Pdl-devel] project ordered sequence image

2024-10-28 Thread Guillermo P. Ortiz
::FAQ> > Frequently asked questions about PDL > metacpan.org > Best regards, > Ed > -- > *From:* Guillermo P. Ortiz > *Sent:* 28 October 2024 1:24 AM > *To:* Ed . > *Cc:* perldl > *Subject:* Re: [Pdl-devel] project ordered sequence

Re: [Pdl-devel] project ordered sequence image

2024-10-25 Thread Guillermo P. Ortiz
if there were, it would operate over the whole image-stack in one > go, which would probably be optimally quick, especially since it would > shortcut. Also with the miracle of auto-pthreading and broadcasting, it > could use POSIX threads. > > Any volunteers to write a "firstnonzer

Re: [Pdl-devel] project ordered sequence image

2024-10-25 Thread Guillermo P. Ortiz
pixel (or channel > value) to the final image where its numerical value * the alpha value was > >0 (or, if you're doing addition or "or"-ing, just add/or the value * the > alpha, which if 0 does nothing). > > Best regards, > Ed > ------ >

Re: [Pdl-devel] project ordered sequence image

2024-10-25 Thread Guillermo P. Ortiz
overlapping. Regards, El jue, 24 oct 2024 a las 9:57, Guillermo P. Ortiz () escribió: > Hello Ed, > thanks for your reply. > That I trying to mean with 'reduce' is some of > projection operation (op) like in PDL::Reduce module > that performs "(op)over"

Re: [Pdl-devel] project ordered sequence image

2024-10-25 Thread Guillermo P. Ortiz
onvert via for example pnmtopng using options for it. > There are hashes like {FLAGS => options} used for options > {CONVERTER => 'pnmtopng'} indicating which conversor to use. > But is seems to be intended of rgb 3(4) X s_x X s_y > > Thanks for your attention in adva

[Pdl-devel] project ordered sequence image

2024-10-23 Thread Guillermo P. Ortiz
ns {CONVERTER => 'pnmtopng'} indicating which conversor to use. But is seems to be intended of rgb 3(4) X s_x X s_y Thanks for your attention in advance Regards -- Dr. Guillermo P. Ortiz Electromagnetismo Aplicado Dto. Física, Facultad de Ciencias Exactas Universidad Nacional

Re: [Pdl-devel] decimate function

2024-06-13 Thread Guillermo P. Ortiz
-Chris > > > On 6/13/2024 8:33 AM, Ed . wrote: > > Hi Guillermo, > > Try https://metacpan.org/pod/PDL::Transform#match ? > > Best regards, > Ed > -- > *From:* Guillermo P. Ortiz > > *Sent:* 13 June 2024 12:04 AM > *To:* pdl-devel@lists.

[Pdl-devel] decimate function

2024-06-12 Thread Guillermo P. Ortiz
use the PDL::GSL::INTERP module for inward interpolation, but it seems that no threading (broadcasting) is possible with it Thank you in advance, Regards -- Dr. Guillermo P. Ortiz Electromagnetismo Aplicado Dto. Física, Facultad de Ciencias Exactas Universidad Nacional del Nordeste Avda Liber

Re: [Pdl-devel] histogram data-flow version?

2024-04-20 Thread Guillermo P. Ortiz
the “To” list. > > > > Please can you expand on this by giving a small amount of sample data > input, with the output you’d like? > > > > Best regards, > > Ed > > > -- > *From:* Guillermo P. Ortiz > *Sent:* Friday, April 19

[Pdl-devel] histogram data-flow version?

2024-04-19 Thread Guillermo P. Ortiz
=(-3..3); $delta=0.2; @res= map {$a->index(which(abs($_-$b)<$delta))->sum} @step ; Then, the list @res cumulates data of $a for which $b are in a desire intervals Regards PS: sorry if I sent my post to a wrong email list -- Dr. Guillermo P. Ortiz Electromagnetismo Aplicado Dt

[Pdl-devel] unexpected results

2023-04-13 Thread Guillermo P. Ortiz
Dear pdl folks, doing $x=pdl(-3) with PDL v2.081 we obtain $x**2-9==0 but, defining $z=-3+0*i $z**2-9 =! 0 while $z*$z-9 ==0 May be integer power are computed differently for real but not for intrinsic complex? (logarithmically for any power) Regards -- Dr. Guillermo P. Ortiz

Re: [Pdl-devel] meigen sort criteria for eigenvalue and eigenvectors.

2022-07-05 Thread Guillermo P. Ortiz
: > > Dear Guillermo, > I guess the eigenvectors are the rows, not the columns, and they are > normalized! > Regards, > Luis > > > On Tue, Jul 05, 2022 at 03:05:16PM -0300, Guillermo P. Ortiz wrote: > > Dear PDL developers, > > > > Trying to use meigen() f

[Pdl-devel] meigen sort criteria for eigenvalue and eigenvectors.

2022-07-05 Thread Guillermo P. Ortiz
0.740148659165145] [-9.44955412328967e-09 1.04009885164584e-08 0.672443278155145 0.740148659165145] ] Thank you in advance. Regards -- Dr. Guillermo P. Ortiz Electromagnetismo Aplicado Dto. Física, Facultad de Ciencias Exactas Universidad Nacional del Nordeste Avda Libertad 5460, W3404AAS

[Pdl-devel] it is possible to mask PDL::Char ndarrays

2022-06-15 Thread Guillermo P. Ortiz
Regards -- Dr. Guillermo P. Ortiz Electromagnetismo Aplicado Dto. Física, Facultad de Ciencias Exactas Universidad Nacional del Nordeste Avda Libertad 5460, W3404AAS Corrientes, Argentina. (+54) 379-4424678 interno 4613 gortiz* at *unne edu ar ___ pdl

Re: [Pdl-devel] replace very small numbers

2022-05-06 Thread Guillermo P. Ortiz
he suggested solution taken by Zaki idea work, but I am afraid for a bug in meigen(). Regards Regards El jue, 5 may 2022 a las 12:21, Zakariyya Mughal () escribió: > On 2022-05-05 at 10:57:53 -0300, Guillermo P. Ortiz wrote: > > Hello, > > somebody know if there are a qu

[Pdl-devel] replace very small numbers

2022-05-05 Thread Guillermo P. Ortiz
Hello, somebody know if there are a quick way to set all very small number to zero into a ndarray? Regards -- Dr. Guillermo P. Ortiz Electromagnetismo Aplicado Dto. Física, Facultad de Ciencias Exactas Universidad Nacional del Nordeste Avda Libertad 5460, W3404AAS Corrientes, Argentina. (+54

Re: [Pdl-devel] PDL::Graphics::TriD

2022-02-17 Thread Guillermo P. Ortiz
lation isn’t finding OpenGL (in > fact, you probably don’t have OpenGL::GLUT installed, which is now needed > to build and use OpenGL type stuff). > > > > Best regards, > > Ed > > > > *From: *Guillermo P. Ortiz > *Sent: *17 February 2022 22:48 > *To: *pdl-de

[Pdl-devel] PDL::Graphics::TriD

2022-02-17 Thread Guillermo P. Ortiz
ank you in advance for your comments Regards -- Dr. Guillermo P. Ortiz Electromagnetismo Aplicado Dto. Física, Facultad de Ciencias Exactas Universidad Nacional del Nordeste Avda Libertad 5460, W3404AAS Corrientes, Argentina. (+54) 379-4424678 interno 4613 gortiz* at *unne edu