At 12:42 PM 8/29/00 -0400, Karl Glazebrook wrote:
>Dan Sugalski wrote:
> >
> > At 12:28 PM 8/29/00 -0400, Karl Glazebrook wrote:
> >
> > >But scalars are not compact.
> >
> > Since scalars are singular things, how would you compact them anyway?
> >
>
>If I say $a = ones(float,10,10) in PDL then each element of $a
>is a 4 byte floating point number.
I presume in PDL that gets you a 10x10 matrix of floats? In that case
you're not getting a scalar back, you're getting a matrix. That it needs to
be represented as an object is an indication of one of perl 5's
limitations. (And then the compactness would be something the object
applies to whatever data structure it builds
>This is not a perl scalar.
Right, so the question still stands--since scalars are singular things, how
(and why?) would you compact them?
>If I then say $b = $a->slice("(5),(5)") then $b is a zero-dim
>piddle - not a scalar.
So then it's not relevant to the question. :)
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk