check row-major for LAPACKE