How to transpose matrix using uBLAS?

user306080 picture user306080 · Nov 4, 2010 · Viewed 8.7k times · Source

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

Answer

Fred Foo picture Fred Foo · Nov 4, 2010
C = boost::numeric::ublas::trans(A);

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