Hi Edward-

It seems that the docs may be out of date
with respect to the implementation.  I get
pdl(), piddle(), null(), and barf() missing
errors using only PDL::Lite.

The piddle() routine seems to be equivalent
to pdl() but is not documented AFAICT.

It is worth opening a ticket to report
the issue and so we can update things
once the details are verified (I took a
quick look at Core.pm and it seemed that
the routines are in @EXPORT but I'm not
sure why they aren't).

Cheers,
Chris

On 8/14/2017 07:05, Edward Baudrez wrote:
(I'm resending this as I'm not sure it reached the list the first
time. Apologies if you've received it twice.)

Hello porters


When trying to fix test failures in Test::PDL since PDL 2.018 (I've
been putting this off a bit longer than I should have), I'm not sure
whether PDL::Lite exports 'pdl' and 'barf'. Reading the documentation,
I thought I could expect the function 'pdl' to be available in my
namespace. However, the following test fails with PDL 2.018:

use Test::More;
use PDL::Lite;
my $p = pdl(3,2,1);
cmp_ok $p->at(1), '==', 2;
done_testing;

When I change 'my $p = pdl()' to 'my $p = PDL->pdl()', it works. It
seems 'pdl' is not exported to my namespace at all. Is this a
documentation error in PDL::Lite or a flaw in my understanding?


Best regards
Edward

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to