by **Julien Langou** » Fri Jul 15, 2005 11:50 pm

Dear Pablo,

> Is there another function callable from C which computes the LU factorization of A stored in row-major order?

No, not in LAPACK. The LU factorization performed by DGETRF only supports column-major matrices.

Note that however in most cases DGETRF can be used in the context of row-major format matrices. For example, if A is square nonsingular stored with row-major format and you want to solve a linear system of equations associated with A, then you can use DGETRF on A, this computes the LU factor of A^T, and finally you obtain the solution by using DGETRS with the first argument TRANS set to 'T'.

Julien Langou