Re: RFC 148 (v1) Add reshape() for multi-dimensional array reshaping
[email protected] ("David L. Nicol")
| Newsgroups | perl.perl6.language.data |
|---|---|
| Organization | University of Missouri - Kansas City supercomputing infrastructure |
| Message-ID | <[email protected]> |
Looks like if we give the data type control over what
the meaning of square brackets after it is, the rest
becomes example code. I think this s covered in the
horribly misnamed http://dev.perl.org/rfc/115.pod which
covers overloading bracketing.
@reshaped = reshape $x, $y, $i, @array [, @array ...]
> =head2 Matrix Calculations and Extensions
>
> It is the opinion of the author that extensive matrix calculations and
> manipulations be left to external modules. A function such as this
> should be able to take care of most of the basic funcionality needed to
> create N-dimensional matrices. However, true matrix functions should be
> put in modules.
--
David Nicol 816.235.1187 [email protected]
safety first: Republicans for Nader in 2000