QVM: Quaternions, Vectors, Matrices

mat_traits<M>::read_element_idx

static inline scalar_type read_element_idx( int r, int c, Matrix const & m );

This function is expected to be static member of user-defined specializations of the mat_traits template. It returns the element at row r and column c of m, by value or by const reference.