Hi, Louis,
This appears to be a bug in the documentation - it says "dim(1)" where it
should say "dim(0)". Try this:
% cat > foo
0 1 2 3 4
10 11 12 13 14
20 21 22 23 24
^D
% pdl
Loaded PDL v2.4.11_001 (supports bad values)
pdl> $a = rcols("foo",[]);
pdl> p $a->((0))
[0 1 2 3 4]
pdl> p $a->(:,(0))
[0 10 20]
I believe that reproduces the old behavior you want.
so the fastest running dimension still runs across columns within a row.
On Jun 7, 2012, at 8:13 AM, Louis Chaillet wrote:
> Hi, just a quick question.
>
> I noticed that the order of the dimensions of a piddle that I read from file
> with rcols seem to have changed from Perl release 5.10.1 to 5.14.2.
>
> It may have changed in between, but those are the versions I have. In the
> earlier version the first dimension was over the rows of the file. In the
> second it is over the columns of the file.
>
> Is this correct, or am I missing something? If it is correct what was the
> first version with the first dimension over the columns of the file?
>
> Kind regards, Louis
> _______________________________________________
> 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