Registered Member
|
Hi,
I would like to perform an horizontal/vertical matrix concatenation between two matrices. Is it possible with Eigen or I have to write my own concatenation function ? I searched on eigen documentation but unfortunatly i didn't find any method that do this operation. Thanks, Angelo. |
Moderator
|
you can use the comma initializer syntax:
C.resize(A.rows(),A.cols()+B.cols()); C << A,B; or: C.resize(A.rows()+B.rows(),A.cols()); C << A,B; |
Registered Member
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora