lagtf(3)
π lagtf(3) β Library Functions Manual π
πΈ NAME πΈ
lagtf β lagtf: LU factor of (T - Ξ»I). π
β¨ SYNOPSIS β¨
π§ Functions π§
subroutine dlagtf (n, a, lambda, b, c, tol, d, in, info)
subroutine slagtf (n, a, lambda, b, c, tol, d, in, info)
dlagtfβ DLAGTF computes an LU factorization of a matrixT-Ξ»I, where T is a general tridiagonal matrix, and Ξ» a scalar, using partial pivoting with row interchanges.slagtfβ SLAGTF computes an LU factorization of a matrixT-Ξ»I, where T is a general tridiagonal matrix, and Ξ» a scalar, using partial pivoting with row interchanges.
π Detailed Description π
The full function documentation is right below, bestie β both routines, every parameter, no skips. This is lowkey the main character section, fr fr. π«Ά
π₯ Function Documentation π₯
π
subroutine dlagtf (integer n, double precision, dimension( * ) a, double precision lambda, double precision, dimension( * ) b, double precision, dimension( * ) c, double precision tol, double precision, dimension( * ) d, integer, dimension( * ) in, integer info) π
DLAGTF computes an LU factorization of a matrix T-Ξ»I, where T is a general tridiagonal matrix, and Ξ» a scalar, using partial pivoting with row interchanges. Slay. β¨
π Purpose π
Okay so DLAGTF factorizes the matrix (T - lambda*I), where T is an n by n tridiagonal matrix and lambda is a scalar, as
T - lambda*I = PLU,
where P is a permutation matrix, L is a unit lower tridiagonal matrix with at most one non-zero sub-diagonal elements per column and U is an upper triangular matrix with at most two non-zero super-diagonal elements per column.
The factorization is obtained by Gaussian elimination with partial pivoting and implicit row scaling.
The parameter LAMBDA is included in the routine so that DLAGTF may be used, in conjunction with DLAGTS, to obtain eigenvectors of T by inverse iteration. Iconic. The way this factorization eats? Obsessed. π
πΈ Parameters πΈ
NβNisINTEGER. The order of the matrixT.AβAisDOUBLE PRECISIONarray, dimension(N). On entry,Amust contain the diagonal elements ofT. On exit,Ais overwritten by the n diagonal elements of the upper triangular matrixUof the factorization ofT.LAMBDAβLAMBDAisDOUBLE PRECISION. On entry, the scalarlambda.BβBisDOUBLE PRECISIONarray, dimension(N-1). On entry,Bmust contain the(n-1)super-diagonal elements ofT. On exit,Bis overwritten by the(n-1)super-diagonal elements of the matrixUof the factorization ofT.CβCisDOUBLE PRECISIONarray, dimension(N-1). On entry,Cmust contain the(n-1)sub-diagonal elements ofT. On exit,Cis overwritten by the(n-1)sub-diagonal elements of the matrixLof the factorization ofT.TOLβTOLisDOUBLE PRECISION. On entry, a relative tolerance used to indicate whether or not the matrix(T - lambda*I)is nearly singular.TOLshould normally be chosen as approximately the largest relative error in the elements ofT. For example, if the elements ofTare correct to about 4 significant figures, thenTOLshould be set to about5*10**(-4). IfTOLis supplied as less thaneps, whereepsis the relative machine precision, then the valueepsis used in place ofTOL.DβDisDOUBLE PRECISIONarray, dimension(N-2). On exit,Dis overwritten by the(n-2)second super-diagonal elements of the matrixUof the factorization ofT.INβINisINTEGERarray, dimension(N). On exit,INcontains details of the permutation matrixP. If an interchange occurred at the kth step of the elimination, thenIN(k) = 1, otherwiseIN(k) = 0. The elementIN(n)returns the smallest positive integerjsuch thatabs( u(j,j) ) <= norm( (T - lambda*I)(j) )*TOL, wherenorm( A(j) )denotes the sum of the absolute values of the jth row of the matrixA. If no suchjexists thenIN(n)is returned as zero. IfIN(n)is returned as positive, then a diagonal element ofUis small, indicating that(T - lambda*I)is singular or nearly singular.INFOβINFOisINTEGER.= 0: successful exit.< 0: ifINFO = -k, the kth argument had an illegal value.
π«Ά Author π«Ά
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 155 of file dlagtf.f.
π
subroutine slagtf (integer n, real, dimension( * ) a, real lambda, real, dimension( * ) b, real, dimension( * ) c, real tol, real, dimension( * ) d, integer, dimension( * ) in, integer info) π
SLAGTF computes an LU factorization of a matrix T-Ξ»I, where T is a general tridiagonal matrix, and Ξ» a scalar, using partial pivoting with row interchanges. Slay. β¨
π Purpose π
Okay so SLAGTF factorizes the matrix (T - lambda*I), where T is an n by n tridiagonal matrix and lambda is a scalar, as
T - lambda*I = PLU,
where P is a permutation matrix, L is a unit lower tridiagonal matrix with at most one non-zero sub-diagonal elements per column and U is an upper triangular matrix with at most two non-zero super-diagonal elements per column.
The factorization is obtained by Gaussian elimination with partial pivoting and implicit row scaling.
The parameter LAMBDA is included in the routine so that SLAGTF may be used, in conjunction with SLAGTS, to obtain eigenvectors of T by inverse iteration. Iconic. Itβs giving iconic factorizer energy. π
πΈ Parameters πΈ
NβNisINTEGER. The order of the matrixT.AβAisREALarray, dimension(N). On entry,Amust contain the diagonal elements ofT. On exit,Ais overwritten by the n diagonal elements of the upper triangular matrixUof the factorization ofT.LAMBDAβLAMBDAisREAL. On entry, the scalarlambda.BβBisREALarray, dimension(N-1). On entry,Bmust contain the(n-1)super-diagonal elements ofT. On exit,Bis overwritten by the(n-1)super-diagonal elements of the matrixUof the factorization ofT.CβCisREALarray, dimension(N-1). On entry,Cmust contain the(n-1)sub-diagonal elements ofT. On exit,Cis overwritten by the(n-1)sub-diagonal elements of the matrixLof the factorization ofT.TOLβTOLisREAL. On entry, a relative tolerance used to indicate whether or not the matrix(T - lambda*I)is nearly singular.TOLshould normally be chosen as approximately the largest relative error in the elements ofT. For example, if the elements ofTare correct to about 4 significant figures, thenTOLshould be set to about5*10**(-4). IfTOLis supplied as less thaneps, whereepsis the relative machine precision, then the valueepsis used in place ofTOL.DβDisREALarray, dimension(N-2). On exit,Dis overwritten by the(n-2)second super-diagonal elements of the matrixUof the factorization ofT.INβINisINTEGERarray, dimension(N). On exit,INcontains details of the permutation matrixP. If an interchange occurred at the kth step of the elimination, thenIN(k) = 1, otherwiseIN(k) = 0. The elementIN(n)returns the smallest positive integerjsuch thatabs( u(j,j) ) <= norm( (T - lambda*I)(j) )*TOL, wherenorm( A(j) )denotes the sum of the absolute values of the jth row of the matrixA. If no suchjexists thenIN(n)is returned as zero. IfIN(n)is returned as positive, then a diagonal element ofUis small, indicating that(T - lambda*I)is singular or nearly singular.INFOβINFOisINTEGER.= 0: successful exit.< 0: ifINFO = -k, the kth argument had an illegal value.
π«Ά Author π«Ά
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 155 of file slagtf.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
That's the tea, bestie! Source/version: LAPACK Version 3.12.0, page lagtf(3). The original footer didn't print a date, so I'm not inventing one β mwah! ππ
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms