Re: New variable type: matrix
[email protected] (Karl Glazebrook) Tue, 29 Aug 2000 12:42:20 -0400
| Newsgroups | perl.perl6.language.data |
|---|---|
| Message-ID | <[email protected]> |
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.
This is not a perl scalar.
If I then say $b = $a->slice("(5),(5)") then $b is a zero-dim
piddle - not a scalar.
Karl