Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

QVM: Quaternions, Vectors, Matrices

swap_cols

#include <boost/qvm/map_mat_mat.hpp>

namespace boost
{
    namespace qvm
    {
        template <int C1,int C2>
        -unspecified-return-type- swap_cols();
    }
}

The expression swap_cols<C1,C2>(m) returns a view proxy that looks like the matrix m with rows C1 and C2 swapped.