MathGroup Archive 2004

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

Search the Archive

Re: unpartition


Hi,

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

Join @@ Transpose[
          Partition[
            Join @@@ Partition[
             Flatten[Transpose[ll, {2, 3, 1, 4}], 2],
          2], 
        2]
       ]

Regards
  Jens

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: populating a list from system of odes
  • Next by Date: Deviation in plots of same function
  • Previous by thread: Re: unpartition
  • Next by thread: RE: unpartition