[Pdl-devel] benchmarks

2021-09-27 Thread Luis Mochan
Hi all, I read today in a Raku newsletter about a floating point benchmark of several languages. https://www.fourmilab.ch/scanalyzer/archives/2021/09/floating-point-benchmark-raku-perl-6-language-added.html Taking C=1 as a reference, Julia=1.5, Python=2.6-30, Perl=23, Raku=205-735,

Re: [Pdl-devel] native complex and PDL::LinearAlgebra

2021-09-27 Thread Luis Mochan
On Mon, Sep 27, 2021 at 02:07:49PM +, Ed . wrote: > ...If you can PR on PDL::LA with failing tests and maybe also fixes, > that would be incredibly helpful! I'll try asap. -- o W. Luis Mochán, |

Re: [Pdl-devel] native complex and PDL::LinearAlgebra

2021-09-27 Thread Ed .
Further to this, an obvious approach for e.g. “conj” is to add “PMCode” that simply does “return $self if $self->type->real;” first, with the obvious “topdl” bit first to setup $self. From: Ed . Sent: 27 September 2021 15:23 To: Luis Mochan;

Re: [Pdl-devel] native complex and PDL::LinearAlgebra

2021-09-27 Thread Ed .
That’s not very surprising, unfortunately. Probably the correct approach is to make everything be correct for native complex, which should also do the right thing for real types (e.g. obviously the complex conjugate of a real number is itself). If you can PR on PDL::LA with failing tests and