问题
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.
来源:https://stackoverflow.com/questions/4097153/how-to-transpose-matrix-using-ublas