PDL::Lite#

📦 stdpdl

PDL with methods only: the core modules loaded, four names imported.

use PDL::Lite;
my $x = pdl(1, 2, 3);
print $x->sum, " ", PDL->zeroes(2), " ", defined &main::zeroes ? "imported" : "methods only", "\n";   # 6 [0 0] methods only

use PDL::Lite loads PDL::Core, PDL::Ops, PDL::Primitive, PDL::Ufunc, PDL::Basic, PDL::Slices and PDL::Bad, and imports only pdl, piddle, null and barf: everything else is called as a method, or fully qualified. For the same modules with their functions imported, use PDL::LiteF; for the whole of PDL, use PDL.

This is PDL::Lite of PDL 2.106: upstream’s Perl, unchanged.