MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.


  • Prev by Date: graphics help
  • Next by Date: Re: Including Functions and Variables from another Notebook
  • Previous by thread: Re: Flattening out subexpressions
  • Next by thread: Var