On 09/03/2011 09:59, sguazt wrote:You might want to provide a const overload as well.
namespace ublas = ::boost::numeric::ublas;
template<typename MatrixT>
inline
ublas::matrix_range<MatrixT> topleft(MatrixT& M)
{
return ublas::subrange(M, 0, 3, 0, 3);
}