13

I am a newbie in C++ Boost uBLAS library so I have a noob question - how to transpose a matrix using this library? I could not find question here:

http://www.boost.org/doc/libs/1_44_0/libs/numeric/ublas/doc/html/index.html

user306080
  • 1,409
  • 3
  • 16
  • 37

1 Answers1

19
C = boost::numeric::ublas::trans(A);

Documented (poorly) under Overview of Matrix and Vector Operations.

Fred Foo
  • 355,277
  • 75
  • 744
  • 836
  • 2
    There is a little more info here http://live.boost.org/doc/libs/1_44_0/libs/numeric/ublas/doc/matrix_expression.htm (Section 4.2) – Steve Townsend Nov 04 '10 at 13:45