Re: Flattening out subexpressions
- To: mathgroup at smc.vnet.net
- Subject: [mg6810] Re: [mg6777] Flattening out subexpressions
- From: seanross at worldnet.att.net
- Date: Mon, 21 Apr 1997 02:00:44 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Xah Lee wrote: > > At 2:37 AM -0400 4/18/97, seanross at worldnet.att.net 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? > > Can be done with one Flatten command by giving a second argument as a level > specifier. > > Xah > xah at best.com > http://www.best.com/~xah/SpecialPlaneCurves_dir/specialPlaneCurves.html> Mountain View, CA, USA Unfortunately, Flatten[expr,level] does not do this. It flattens everything down to the specified level. I only want to Flatten the third level and leave the first and second levels untouched.