SLASY2(3)
π SLASY2(3) β Library Functions Manual π
okay bestie, welcome to SLASY2(3) from the Library Functions Manual. the header literally has /home/abui...RC/slasy2.f(3) on both sides, and it is giving main character energy for a Fortran routine. π
β¨
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/slasy2.f
that's the file, bestie. that's the whole NAME. iconic. π
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines πΈ
subroutine SLASY2 (ltranl, ltranr, isgn, n1, n2, tl, ldtl, tr, ldtr, b,
ldb, scale, x, ldx, xnorm, info)
SLASY2 solves the Sylvester matrix equation where the matrices are of order 1 or 2.
π Function/Subroutine Documentation π
okay so this is the full main-character signature, no cap:
subroutine SLASY2 (logical ltranl, logical ltranr, integer isgn, integer n1,
integer n2, real, dimension( ldtl, * ) tl, integer ldtl, real,
dimension( ldtr, * ) tr, integer ldtr, real, dimension( ldb, * ) b,
integer ldb, real scale, real, dimension( ldx, * ) x, integer ldx, real
xnorm, integer info)
SLASY2 solves the Sylvester matrix equation where the matrices are of order 1 or 2.
π Purpose π
the goal is literally this: SLASY2 solves for the N1 by N2 matrix X, 1 <= N1,N2 <= 2, in
op(TL)*X + ISGN*X*op(TR) = SCALE*B,
where TL is N1 by N1, TR is N2 by N2, B is N1 by N2, and ISGN = 1 or -1. op(T) = T or T**T, where T**T denotes the transpose of T. π
π¦ Parameters π¦
okay bestie, here is the whole parameter lineup, in order, no skips:
LTRANLβLTRANLisLOGICAL. On entry,LTRANLspecifies theop(TL):= .FALSE., op(TL) = TL,= .TRUE., op(TL) = TL**T.
LTRANRβLTRANRisLOGICAL. On entry,LTRANRspecifies theop(TR):= .FALSE., op(TR) = TR,= .TRUE., op(TR) = TR**T.
ISGNβISGNisINTEGER. On entry,ISGNspecifies the sign of the equation as described before.ISGNmay only be1or-1.N1βN1isINTEGER. On entry,N1specifies the order of matrixTL.N1may only be0,1or2.N2βN2isINTEGER. On entry,N2specifies the order of matrixTR.N2may only be0,1or2.TLβTLisREAL array, dimension (LDTL,2). On entry,TLcontains anN1byN1matrix.LDTLβLDTLisINTEGER. The leading dimension of the matrixTL.LDTL >= max(1,N1).TRβTRisREAL array, dimension (LDTR,2). On entry,TRcontains anN2byN2matrix.LDTRβLDTRisINTEGER. The leading dimension of the matrixTR.LDTR >= max(1,N2).BβBisREAL array, dimension (LDB,2). On entry, theN1byN2matrixBcontains the right-hand side of the equation.LDBβLDBisINTEGER. The leading dimension of the matrixB.LDB >= max(1,N1).SCALEβSCALEisREAL. On exit,SCALEcontains the scale factor.SCALEis chosen less than or equal to1to prevent the solution overflowing.XβXisREAL array, dimension (LDX,2). On exit,Xcontains theN1byN2solution.LDXβLDXisINTEGER. The leading dimension of the matrixX.LDX >= max(1,N1).XNORMβXNORMisREAL. On exit,XNORMis the infinity-norm of the solution.INFOβINFOisINTEGER. On exit,INFOis set to:0: successful exit.1:TLandTRhave too close eigenvalues, soTLorTRis perturbed to get a nonsingular equation.
NOTE: In the interests of speed, this routine does not check the inputs for errors. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 172 of file slasy2.f.
π Author π
and the top-level author note is literally: Generated automatically by Doxygen for LAPACK from the source code. π«Ά
made with love by LAPACK, Version 3.12.0, and the footer path /home/abui...RC/slasy2.f(3). mwah πβ¨
π¦ 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