Hi Ed,
Was this the official announcement of PDL2.099?
On Fri, Jan 24, 2025 at 12:17:05AM +, Ed . wrote:
> That does look more simple! PDL 2.099 is out now with the ND_both functions,
> announcement to follow soon. Luis, I moved csqrt* to PDL::Math, as I felt the
> other c* functions sat th
u'd want to not do something on the whole ndarray,
but instead do something on a $pdl->where(condition...). What do you think?
Best regards,
Ed
____________
From: Guillermo P. Ortiz mailto:gor...@exa.unne.edu.ar>>
Sent: 21 January 2025 19:07
To: Ed . mailto:ej...@ho
>>>>
>>>> But this seem did not work for complex number
>>>>
>>>> pdl> $r1.=$r1*(1+i)
>>>>
>>>> pdl> $r2.=$r2-(1+i)
>>>>
>>>>
>>>> pdl> p $r
>>>>
>>>> [
>
egards,
Ed
From: Guillermo P. Ortiz
Sent: 22 January 2025 22:02
To: Ed .
Cc: pdl-devel@lists.sourceforge.net ; perldl
Subject: Re: [Pdl-devel] conditional inline
OK Ed,
in my version PDL2.098 still there does not exist whichND_both.
But, let me resume here the problem
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
whichND_both is
helpful.
Best regards,
Ed
From: Guillermo P. Ortiz
Sent: 22 January 2025 21:06
To: Ed .
Cc: pdl-devel@lists.sourceforge.net ; perldl
Subject: Re: [Pdl-devel] conditional inline
Hi Ed,
yes I realize that problem and use r2C on $r before to apply
>
> Best regards,
> Ed
>
> --
> *From:* Guillermo P. Ortiz
> *Sent:* 21 January 2025 23:35
> *To:* Ed .
> *Cc:* pdl-devel@lists.sourceforge.net ;
> perldl
> *Subject:* Re: [Pdl-devel] conditional inline
>
> Hi Ed,
> yes, just I wa
Guillermo P. Ortiz
Sent: 21 January 2025 23:35
To: Ed .
Cc: pdl-devel@lists.sourceforge.net ; perldl
Subject: Re: [Pdl-devel] conditional inline
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)
Best regards,
Ed
From: Guillermo P. Ortiz
Sent: 22 January 2025 16:24
To: Ed .
Cc: pdl-devel@lists.sourceforge.net ; perldl
Subject: Re: [Pdl-devel] conditional inline
Hello again,
I find some a not pretty solution using whereND
$r=(zeroes(3,3)->ndcoords/
not work in 2D for real case neither
>>>
>>> pdl> $r=zeroes(3,3)->ndcoords/2-pdl(0.5,0.5)
>>>
>>> pdl> p $r
>>>
>>> [
>>> [
>>> [-0.5 -0.5]
>>> [ 0 -0.5]
>>> [ 0.5 -0.5]
>>> ]
>>&
ó:
>>>
>>> Yes Ed, you are right.
>>> I want to perform different operations on $r
>>> depending on its distance to a point $r0 in 2D.
>>> Then, I guess that first, and because for further
>>> manipulation, I decide to center $r-=$r0 in
>>>
0 0]
>
> what I doing wrong here?
>
> Regards
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> El mar., 21 de enero de 2025 19:42, Ed . escribió:
>
>> Hi Guillermo,
>>
>> That does feel to me like you'd want to *not
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 ;
>
Cc: pdl-devel@lists.sourceforge.net ; perldl
Subject: Re: [Pdl-devel] conditional inline
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
(mailto:gor...@exa.unne.edu.ar>>)
that there's some real problem you're trying to solve, 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
>> *Se
, 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
lists.sourceforge.net>>;
perldl
mailto:pdl-gene...@lists.sourceforge.net>>
Subject: Re: [Pdl-devel] conditional inline
Thanks Ed,
Using ternary conditional expression
I still have some problem with múltiple disensión case.
See my example in message befare
El El lun, 20 ene 2025 a la(s) 19:31, Ed .
m
:-)
>
> 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
s,
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 still have some problem with múltiple disensión case.
See my examp
Thanks Ed,
Using ternary conditional expression
I still have some problem with múltiple disensión case.
See my example in message befare
El El lun, 20 ene 2025 a la(s) 19:31, Ed . escribió:
> Hi Guillermo,
>
> You can do that indeed, that's just Perl. If you wanted to do operations
> on a subse
Hi Guillermo,
You can do that indeed, that's just Perl. If you wanted to do operations on a
subset of that ndarray, then you'd do e.g.
$pdl->where(($pdl-0.5)->abs < 0.2) *= 5;
An observation is that the above condition could be a bit shorter by using the
recently-added approx_artol: (which wou
21 matches
Mail list logo