MathGroup Archive 2004

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

Search the Archive

Re: unpartition


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