Dear All,

this is my first post so if I break some rules do not beat me too hard.

I make my first steps with PDL and have the following problem.

Given the script:

#!/perl
use strict;
use warnings;
use PDL;
use PDL::NiceSlice;
my $a  = sequence  (3,5);
print $a;
my $col = 2;
my $t = $a( $col,);
print $t;
print $a;

I get the following output:

[
 [ 0  1  2]
 [ 3  4  5]
 [ 6  7  8]
 [ 9 10 11]
 [12 13 14]
]
[
 [ 2]
 [ 5]
 [ 8]
 [11]
 [14]
]
[
 [ 0  1  2]
 [ 3  4  5]
 [ 6  7  8]
 [ 9 10 11]
 [12 13 14]
]

How can I modify the parent ($a) so that it contains "everything except what is 
in the slice", as follows:

[
 [ 0  1  ]
 [ 3  4  ]
 [ 6  7  ]
 [ 9 10 ]
 [12 13]
]

Thank you very much in advance.

VE
---
[email protected]
24.08.2013 
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to