Re: Flattening out subexpressions
- To: mathgroup at smc.vnet.net
- Subject: [mg6823] Re: [mg6777] Flattening out subexpressions
- From: Richard Finley <trfin at fiona.umsmed.edu>
- Date: Mon, 21 Apr 1997 02:03:09 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Sean,
This should work:
Table[Table[Flatten[matrix[[ i, j ]]],{ j, 1, 64}],{ i, 1, 64}]
where matrix is the array in question.
RF
At 02:37 AM 4/18/97 -0400, you wrote:
>Does anyone know how to conveniently partition a 64x64x2x3 array into a
>64x64x6 array, effectively Flatten-ing out the innermost dimension?
>Flatten seems to work from the top down. My first guess is to first
>Flatten, then Partition. Is there a better way?
>
>