On Sun, Jan 20, 2019 at 08:45:31PM -0600, Luis Mochan wrote:
> ...
> On Fri, Jan 18, 2019 at 11:48:01PM -0700, Derek Lamb wrote:
> > Hi Luis,
> >
> > This was fixed with below commit on the complex_atan2 branch. That branch
> > has not yet been merged into master though. In principle it could be, but
> > perhaps some more of the TODOs need to be taken care of first. What do you
> > think?
Hi Derek,
I just realized that a useful complex function could be Cclump, clump
for complex pdl's, which would be identical to clump except for not
touching dimension 0 which selects real and imaginary parts.
For example, given
pdl> $a=sequence(2,3,3)->complex
pdl> p $a
[
[ 0 +1i 2 +3i 4 +5i]
[ 6 +7i 8 +9i 10+11i]
[12+13i 14+15i 16+17i]
]
it would be nice to say
pdl> p $a->Cclump(-1)
[0 +1i 2 +3i 4 +5i 6 +7i 8 +9i 10 +11i 12 +13i 14 +15i 16 +17i]
instead of
pdl> p $a->mv(0,-1)->clump(-2)->mv(-1,0)
[0 +1i 2 +3i 4 +5i 6 +7i 8 +9i 10 +11i 12 +13i 14 +15i 16 +17i]
Best regards,
Luis
--
o
W. Luis Mochán, | tel:(52)(777)329-1734 /<(*)
Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\
Apdo. Postal 48-3, 62251 | (*)/\/ \
Cuernavaca, Morelos, México | [email protected] /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16 C2DF 5F0A C52B 791E B9EB
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general