Hey folks -

I came across an annoying problem in which I need to convert a
multidimensional piddle into an array of lower dimensional piddles. namely a
2d piddle into a Perl array of 1d piddles. Here's what I came up with, but
I'd appreciate any other suggestions:

use PDL::NiceSlice;
my $high_dim_piddle;
my @array = map {$high_dim_piddle($_;-)} 0..($high_dim_piddle->dim(0)-1);

Thoughts?
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to