-----Original Message-----
From: sisyph...@optusnet.com.au
Sent: Saturday, November 25, 2017 5:10 PM
To: pdl-devel@lists.sourceforge.net
Subject: [Pdl-devel] Current blead breaks t/image2d.t
It gets rather strange.
For example, this demo:
##########################
use PDL;
use PDL::Image2D;
my $pa = ones(5,5);
$m = $pa->slice('1:3,1:3');
# my $m = $pa->slice('1:3,1:3');
$m .= $pa->badvalue;
print $m;
##########################
Using current blead, it outputs:
[
[-1.7976931e+308 -1.7976931e+308 -1.7976931e+308]
[-1.7976931e+308 -1.7976931e+308 -1.7976931e+308]
[-1.7976931e+308 -1.7976931e+308 -1.7976931e+308]
]
But if I *instead* prefix the initial assignment to $m with a "my" (as per
the line that has been commented out) it outputs:
[
[-Inf -Inf -Inf]
[-Inf -Inf -Inf]
[-Inf -Inf -Inf]
]
On 5.26.0, irrespective of whether that "my" is present or not, it outputs:
[
[-1.7976931e+308 -1.7976931e+308 -1.7976931e+308]
[-1.7976931e+308 -1.7976931e+308 -1.7976931e+308]
[-1.7976931e+308 -1.7976931e+308 -1.7976931e+308]
]
I find I'm getting rather suspicious that blead is doing something it ought
not.
Cheers,
Rob
------------------------------------------------------------------------------
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