How to transpose matrix using uBLAS?

2019-04-19 19:10发布

问题:

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

回答1:

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

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