Boost logo

Ublas :

From: Sorkin Dmitri (dsorkin_at_[hidden])
Date: 2005-04-18 05:30:57


Hi.

  I have two (sparse) matrices: 'A (NxM)', 'B(NxK)'.
What is the good way to concatenate them
horizontally into resulting matrix 'C (N x M+K)' ?

  The same question about vertical concatenation.

(I am seeking for an equivalent for matlab
'C=[A,B]' and 'C=[A;B]' operations.)

Thank you.
  Dima.