* Add interface for data represented as a row-major matrix in a Vector. * Make the interface more efficient in general.