Re: [Pdl-devel] complex numbers

2021-04-03 Thread Ed .
Converting between PDL::Complex and native is still on the to-do list. What your expression created there is a PDL::Complex (which is a thin layer over a PDL with an extra dim of 2) whose underlying numbers were native complex numbers, hence your output. That would be straightforward enough to d

[Pdl-devel] complex numbers

2021-04-03 Thread Luis Mochan
Trying to find out how safe is it to mix different types of complex numbers (for migration purposes), I tried: pdl> use PDL::Complex pdl> print i*ci() 0+0i +0+1ii So, I guess not surprisingly, that they are not. I don't know if these mixed operations should be forbidden (I guess it wo