Hi David:  Have you tried 'dog'?  This is a PDL built-in which is the 
opposite of 'cat'!

--Doug

[email protected]
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611

On Tue, 20 Apr 2010, David Mertens wrote:

> 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