Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Re: How to deal with big matrix 2

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116726] Re: How to deal with big matrix 2
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Fri, 25 Feb 2011 06:35:26 -0500 (EST)

Flatten[Transpose[{Array[a, {5, 3}], Array[b, {5, 3}]}, {3, 2, 1}], 1]

{{a[1, 1], b[1, 1]}, {a[2, 1], b[2, 1]}, {a[3, 1], b[3, 1]}, {a[4, 1],
    b[4, 1]}, {a[5, 1], b[5, 1]}, {a[1, 2], b[1, 2]}, {a[2, 2],
   b[2, 2]}, {a[3, 2], b[3, 2]}, {a[4, 2], b[4, 2]}, {a[5, 2],
   b[5, 2]}, {a[1, 3], b[1, 3]}, {a[2, 3], b[2, 3]}, {a[3, 3],
   b[3, 3]}, {a[4, 3], b[4, 3]}, {a[5, 3], b[5, 3]}}

Bobby

On Thu, 24 Feb 2011 05:20:53 -0600, Szymon Roziewski  
<szymon.roziewski at gmail.com> wrote:

> Any suggestions?
>
> 2011/2/23 Szymon Roziewski <szymon.roziewski at gmail.com>
>
>> Hello there,
>>
>> I have such a case, I have two matrices and each of them is sized  
>> 1100x1300
>> e.g.
>> I would like to create a vector with length 1 430 000 and each of  
>> element
>> of
>> this vector should be {matrxi1_el1x1, matrix2_el1x1}, {matrxi1_el1x2,
>> matrix2_el1x2},... , {matrxi1_el1100x1300, matrix2_el1100x1300}
>> How to do it without using Do[Do[...]] because it consumes a lot of my
>> time.
>>
>>
>> kind regards,
>> Szymon Roziewski
>>
>
>
>


-- 
DrMajorBob at yahoo.com


  • Prev by Date: Re: Pattern Matching Question
  • Next by Date: Re: Which, Switch, If, and Piecewise
  • Previous by thread: Re: How to deal with big matrix 2
  • Next by thread: error when trying to run a Mathematica script in Windows 7