SRC/dlagts.f(3)
π NAME
SRC/dlagts.f β yes bestie, thatβs the file, and this whole page comes from the Library Functions Manual. Itβs giving βtridiagonal solver with main character energy.β β¨
πΈ SYNOPSIS
π«Ά Functions/Subroutines
subroutine dlagts (job, n, a, b, c, d, in, y, tol, info)β DLAGTS solves the system of equations(T-Ξ»I)x = yor(T-Ξ»I)^Tx = y, whereTis a general tridiagonal matrix andΞ»a scalar, using the LU factorization computed byslagtf.
π¦ Function/Subroutine Documentation
okay so hereβs the exact signature, no cap:
subroutine dlagts (integer job, integer n, double precision, dimension( * )
a, double precision, dimension( * ) b, double precision, dimension( * )
c, double precision, dimension( * ) d, integer, dimension( * ) in,
double precision, dimension( * ) y, double precision tol, integer info)
DLAGTS solves the system of equations (T-Ξ»I)x = y or (T-Ξ»I)^Tx = y, where T is a general tridiagonal matrix and Ξ» a scalar, using the LU factorization computed by slagtf.
π Purpose
bestie, hereβs the tea: DLAGTS may be used to solve one of the systems of equations
(T - lambda*I)*x = y or (T - lambda*I)**T*x = y,
where T is an n by n tridiagonal matrix, for x, following the factorization of (T - lambda*I) as
(T - lambda*I) = P*L*U ,
by routine DLAGTF. The choice of equation to be solved is controlled by the argument JOB, and in each case there is an option to perturb zero or very small diagonal elements of U, this option being intended for use in applications such as inverse iteration. π«
π Parameters
JOBβJOB is INTEGER. Specifies the job to be performed by DLAGTS as follows:= 1: The equations(T - lambda*I)x = yare to be solved, but diagonal elements ofUare not to be perturbed.= -1: The equations(T - lambda*I)x = yare to be solved and, if overflow would otherwise occur, the diagonal elements ofUare to be perturbed. See argumentTOLbelow.= 2: The equations(T - lambda*I)**Tx = yare to be solved, but diagonal elements ofUare not to be perturbed.= -2: The equations(T - lambda*I)**Tx = yare to be solved and, if overflow would otherwise occur, the diagonal elements ofUare to be perturbed. See argumentTOLbelow.
NβN is INTEGER. The order of the matrixT.AβA is DOUBLE PRECISION array, dimension (N). On entry,Amust contain the diagonal elements ofUas returned fromDLAGTF.BβB is DOUBLE PRECISION array, dimension (N-1). On entry,Bmust contain the first super-diagonal elements ofUas returned fromDLAGTF.CβC is DOUBLE PRECISION array, dimension (N-1). On entry,Cmust contain the sub-diagonal elements ofLas returned fromDLAGTF.DβD is DOUBLE PRECISION array, dimension (N-2). On entry,Dmust contain the second super-diagonal elements ofUas returned fromDLAGTF.INβIN is INTEGER array, dimension (N). On entry,INmust contain details of the matrixPas returned fromDLAGTF.YβY is DOUBLE PRECISION array, dimension (N). On entry, the right hand side vectory. On exit,Yis overwritten by the solution vectorx. β¨TOLβTOL is DOUBLE PRECISION. On entry, withJOB < 0,TOLshould be the minimum perturbation to be made to very small diagonal elements ofU.TOLshould normally be chosen as abouteps*norm(U), whereepsis the relative machine precision, but ifTOLis supplied as non-positive, then it is reset toeps*max( abs( u(i,j) ) ). IfJOB > 0thenTOLis not referenced.
On exit, TOL is changed as described above, only if TOL is non-positive on entry. Otherwise TOL is unchanged.
INFOβINFO is INTEGER.= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value> 0: overflow would occur when computing theINFO(th)element of the solution vectorx. This can only occur whenJOBis supplied as positive and either means that a diagonal element ofUis very small, or that the elements of the right-hand side vectoryare very large. π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 162 of file dlagts.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
mwah π β this cutie was brought to you by LAPACK, Version 3.12.0, and the page is SRC/dlagts.f(3). π«Άπ
π¦ 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