Thanks for the report. Would have gotten to it sooner but had to figure out what $x was supposed to be. The problem was that the @dims list was flattened into the args to pdl() which for a vector resulted in a single value which was converted to a scalar piddle value. Will fix in git.
--Chris On Thu, Apr 25, 2013 at 5:59 AM, Ingo Schmid <[email protected]> wrote: > Hi, > > shape returns a zero-size pdl on a vector. Shouldn't it be a 1-element > piddle? > > Ingo > > pdl> $y=zeroes(10,3,4) > > pdl> p $x->shape > 48 > pdl> p $y->shape > [10 3 4] > pdl> help $x->shape > This variable is Double D [] P 0.01KB > > should that not be D [1]? > > pdl> help $y->shape > This variable is Double D [3] P 0.02KB > > > _______________________________________________ > 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
