PDL::Complex::Overloads - subclass of Math::Complex with overload fallbacks
require PDL::Complex::Overloads; my $same = PDL::Complex::Overloads::cplx(1, 2) eq '1+2i';
This is a subclass whose only purpose is to provide Math::Complex's overloads but with fallback true, mainly to allow string-comparison for backwards compatibility.
fallback
Ed J
Math::Complex
To install PDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PDL
CPAN shell
perl -MCPAN -e shell install PDL
For more information on module installation, please visit the detailed CPAN module installation guide.