There is already a reshape() in PDL. Obviously that only applies to PDL arrays. But if PDL style arrays get in to the core, then that sort of functionality ought to arise. OK here is a basic question: how do we specify element access in PDL type arrays? $a[$i][$j][$k] or $a[$i,$j,$k] Most numerical languages use the second form, because the array is stored as one big data list, which is indexed, rather than a a list of lists. This is important for how we access elements efficiently in compact arrays - we don't want [][][] to invoke 3 overloaded subroutines, just one. However one supposes it can be made to work either way. Comments? Karl
- RFC 148 (v1) Add reshape() for multi-dimensional array... Perl6 RFC Librarian
- Re: RFC 148 (v1) Add reshape() for multi-dimensio... Karl Glazebrook
- Re: RFC 148 (v1) Add reshape() for multi-dime... Nathan Wiger
- Re: RFC 148 (v1) Add reshape() for multi-... Karl Glazebrook
- Re: RFC 148 (v1) Add reshape() for mu... Nathan Wiger
- Re: RFC 148 (v1) Add reshape() f... Ariel Scolnicov
- Re: RFC 148 (v1) Add reshape() f... Daniel Chetlin
- Re: RFC 148 (v1) Add reshape... Karl Glazebrook
- Re: RFC 148 (v1) Add res... Christian Soeller
- Re: RFC 148 (v1) Add res... Karl Glazebrook
- Re: RFC 148 (v1) Add reshape() for multi-dimensio... David L. Nicol
- Re: RFC 148 (v1) Add reshape() for multi-dime... c . soeller