Kelvin Lee
Kelvin Lee

Reputation: 415

BLAS/LAPACK routine for doing Gaussian elimination

I'm a new user of BLAS/Lapack, and I'm just wondering is there a routine which does Gaussian elimination or even Gaussian-Jordan elimination? I googled and looked at their documentations, but still couldn't find them.

Thanks a lot for helping me out!

Upvotes: 9

Views: 5226

Answers (1)

Jitse Niesen
Jitse Niesen

Reputation: 4542

Gaussian elimination is basically the same as LU factorization. The routine xGETRF computes the LU factorization (e.g., DGETRF for real double precision matrices). The U factor corresponds to the matrix after Gaussian elimination. The U factor is stored in the upper triangular part (including the diagonal) of the matrix A on exit.

LU factorization / Gaussian elimination is commonly used to solve linear systems of equations. You can use the xGETRS routine to solve a linear system once you have computed the LU factorization.

Upvotes: 10

Related Questions