Re: [Pdl-devel] Fwd: Constructing multi-level perl list from a PDL

2016-04-14 Thread Craig DeForest
“dog” does it one dimension at a time, so if you’ve got a 2D PDL, you can do: @nested = map { [ $_->dog ] } ($im->dog); > On Apr 14, 2016, at 1:04 PM, dhunt wrote: > > > Hi all: I've got what might seem like a silly question: Is there any > PDL routine which will > convert an N-dime

[Pdl-devel] Fwd: Constructing multi-level perl list from a PDL

2016-04-14 Thread dhunt
Hi all: I've got what might seem like a silly question: Is there any PDL routine which will convert an N-dimensional PDL to a corresponding N-dimensional perl list structure? The 'pdl' constructor does the inverse quite nicely, and I use it all the time. I've got an odd case where I would like