getrf [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:mtl2lapack Component type:function
Prototype
template <class LapackMatrix, class VectorInt>
int getrf(LapackMatrix& a, VectorInt& ipivot) ;
Description
Computes an LU factorization of a general M-by-N matrix A using partial pivoting with row interchanges. Factorization has the form A = P*L*U.
  • a (IN/OUT - matrix(M,N)) On entry, the coefficient matrix A to be factored. On exit, the factors L and U from the factorization A = P*L*U.
  • ipivot (OUT - vector(min(M,N))) Integer vector. The row i of A was interchanged with row IPIV(i).
  • info (OUT - int) 0 : successful exit < 0 : If INFO = -i, then the i-th argument had an illegal value. > 0 : If INFO = i, then U(i,i) is exactly zero. The factorization has been completed, but the factor U is exactly singular, and division by zero will occur if it is used to solve a system of equations.
Definition
mtl2lapack.h
Preconditions
Complexity
Example
Notes
See also

[MTL Home] Copyright © 1998,1999 University of Notre Dame. All Rights Reserved.