MathGroup Archive 2004

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

Search the Archive

Re: unpartition

  • To: mathgroup at smc.vnet.net
  • Subject: [mg45942] Re: unpartition
  • From: bobhanlon at aol.com (Bob Hanlon)
  • Date: Fri, 30 Jan 2004 04:16:18 -0500 (EST)
  • References: <bvaonb$a25$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

t = Table[4*(i - 1) + j, {i, 4}, {j, 4}];

s = Partition[t,{2,2}];

Partition[Flatten[Transpose /@ s],4] == t

True


Bob Hanlon

In article <bvaonb$a25$1 at smc.vnet.net>, steven.burger at duke.edu (Steven Burger)
wrote:

<< How do you unpartition a matrix?

For example: Starting with, 

Partition[Table[4*(i - 1) + j, {i, 4}, {j, 4}],{2,2}]


how do you go back to,

Table[4*(i - 1) + j, {i, 4}, {j, 4}]


  • Prev by Date: Re: changing replacement rule arrow ( ->) to equal sign(==)...
  • Next by Date: Re: unpartition
  • Previous by thread: Re: unpartition
  • Next by thread: Re: unpartition