Running this program:
#!/usr/bin/perl
use PDL;
use PDL::NiceSlice;
my $a = pdl [[1,2,3],[4,5,6]];
my $s = sub { 1; };
my $x = sum($a->slice("0:0,1"));
$s->($x);
using ActivePerl 5.8.8.820 and PDL 2.4.3 gives the following error:
Can't call method "nslice" on unblessed reference at choleskyf.pl line 7
The above code is simplified from some code I'm trying to convert from
looping on each element to using slices. I can't use slices because of this
error.
Steve
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl