1
# Test ->clump(). This is not yet good enough: we need
8
# PDL::Core::set_debugging(1);
9
kill INT,$$ if $ENV{UNDER_DEBUGGER}; # Useful for debugging.
12
#$a = zeroes(4,4) * zeroes(4,4);
25
print "not " unless $result ;
33
print "C AND D: $a,$b,$c,$d\n";
45
# $a = $a0->PDL::Core::new_or_inplace($a0);
49
# PDL::Primitive::axisvalues($b);
54
$a0 = xvals(zeroes(3,3));
58
$a1 = yvals(zeroes(3,3));
70
$a = xvals(zeroes(3,3)) + 10*yvals(zeroes(3,3));
76
# $b->make_physical();
83
ok(1,tapprox($b,pdl [0,1,2,10,11,12,20,21,22]));
87
$c = $a->slice('0:2:2,:');
91
$e = $d->slice("2:4");
93
$f = ""; # Warning eater
97
kill INT,$$ if $ENV{UNDER_DEBUGGER}; # Useful for debugging.
98
# ok(2,$@ =~ /^clump: Increments do not match/);
99
# Clump supports this now.
100
ok(2,tapprox($d,pdl [0,2,10,12,20,22]));
102
ok(3,tapprox($e,pdl [10,12,20]));