Question: How to construct a Matrix ?

Hi,

Could you please help me in solving this problem ?

  • N is the number of row, about 10^4 in real applications
  • P is the number of columns (about 5)
  • A and B are two NxP matrices
  • C is the Nx(2P) matrix defined by
    • its 2*k-1 th column is the k th column of A
    • its 2*k th column is the k th column of B


What is the fastest and less memory consumming way to construct this matrix C ?

Thanks in advance

 

 

Please Wait...