#include <boost/qvm/map_vm.hpp>
namespace boost
{
namespace qvm
{
//Only enabled if: is_v<A>::value
template <iclass A>
-unspecified-return-type- diag_m( A & a );
}
}
The expression diag_m(v) returns a view proxy that accesses the vector v as a square matrix of the same dimensions in which the elements of v appear as the main diagonal and all other elements are zero.