Hi Robert,
Normally it is very easy. If your array is in @a you can do:
$pdl = pdl(@a)
(works for array refs too: $pdl = pdl([1,2,34])
If you want to go back you want to look at the list function: pdldoc
list
Cheers,
Jarle.
On 17 Nov 2006, at 15:19, Robert Cumming wrote:
I'm new to PDL. I thought would try out some of the functionality in
my existing programs (which plot things with pgperl, for example).
But my initial search of the documentation hasn't led me to any advice
about converting arrays to piddles.
Am I right in saying that mixing arrays and piddles is not a good
idea? Or have I just missed the simple guide to converting them?
Robert
--
Robert Cumming, Stockholms observatorium
http://www.astro.su.se/~robert/
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl