Added row-major matrix handlers.