ZGETRI(3)
ZGETRI(3) β Library Functions Manual β okay bestie, this is the LAPACK page for inverting a matrix via LU, and it is genuinely iconic π
β¨
π NAME
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/zgetri.f
That's the source file, bestie π«Ά The routine itself is ZGETRI.
β¨ SYNOPSIS
π§ Functions/Subroutines
subroutine ZGETRI (n, a, lda, ipiv, work, lwork, info)
ZGETRI
πΈ Function/Subroutine Documentation
subroutine ZGETRI (integer n, complex*16, dimension( lda, * ) a, integer
lda, integer, dimension( * ) ipiv, complex*16, dimension( * ) work,
integer lwork, integer info)
ZGETRI
π Purpose
ZGETRI computes the inverse of a matrix using the LU factorization computed by ZGETRF. No cap π§β¨
This method inverts U and then computes inv(A) by solving the system inv(A)*L = inv(U) for inv(A). It's giving linear algebra main character energy, fr fr π₯
π¦ Parameters
N
N is INTEGER β the order of matrix A. Must satisfy N >= 0. π
A
A is a COMPLEX*16 array, dimension (LDA,N).
On entry, it holds the factors L and U from the factorization A = P*L*U as computed by ZGETRF.
On exit, if INFO = 0, it's the inverse of the original matrix A. Slay π
LDA
LDA is INTEGER β the leading dimension of array A. Must satisfy LDA >= max(1,N).
IPIV
IPIV is an INTEGER array, dimension (N) β the pivot indices from ZGETRF; for 1<=i<=N, row i of the matrix was interchanged with row IPIV(i).
WORK
WORK is a COMPLEX*16 array, dimension (MAX(1,LWORK)).
On exit, if INFO=0, then WORK(1) returns the optimal LWORK. β¨
LWORK
LWORK is INTEGER β the dimension of array WORK. Must satisfy LWORK >= max(1,N). For optimal performance, LWORK >= N*NB, where NB is the optimal blocksize returned by ILAENV.
If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA. Lowkey important π«Ά
INFO
INFO is INTEGER:
= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value> 0: ifINFO = i,U(i,i)is exactly zero; the matrix is singular and its inverse could not be computed. π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 113 of file zgetri.f.
π« Author
Generated automatically by Doxygen for LAPACK from the source code. Automation ate, honestly π
okay that's the page, bestie π«Ά β this is LAPACK Version 3.12.0, footer path /home/abui...RC/zgetri.f(3), and yes the manual name up top was Library Functions Manual. Bye queen πβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms