SLALN2(3)
πΈ NAME πΈ
Okay bestie, welcome to SLALN2(3) from the Library Functions Manual β this page is all about /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/slaln2.f. Itβs giving linear-algebra main character energy, fr fr. π
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines π«Ά
subroutine SLALN2 (ltrans, na, nw, smin, ca, a, lda, d1, d2, b, ldb, wr,
wi, x, ldx, scale, xnorm, info)
SLALN2 solves a 1-by-1 or 2-by-2 linear system of equations of the specified form. Iconic, lowkey. β¨
π Function/Subroutine Documentation π
subroutine SLALN2 (logical ltrans, integer na, integer nw, real smin, real
ca, real, dimension( lda, * ) a, integer lda, real d1, real d2, real,
dimension( ldb, * ) b, integer ldb, real wr, real wi, real, dimension(
ldx, * ) x, integer ldx, real scale, real xnorm, integer info)
SLALN2 solves a 1-by-1 or 2-by-2 linear system of equations of the specified form. No cap, thatβs the whole assignment. π¦
π Purpose π
So, bestie, SLALN2 solves a system of the form
(ca A - w D ) X = s B
or
(ca A**T - w D) X = s B
with possible scaling (a scaling factor <= 1) and perturbation of A. (A**T means A-transpose.) Math but make it fashion. π
Ais anNA x NAreal matrix,cais a real scalar,Dis anNA x NAreal diagonal matrix,wis a real or complex value, andXandBareNA x 1matrices -- real ifwis real, complex ifwis complex.NAmay be1or2.- If
wis complex,XandBare represented asNA x 2matrices, the first column of each being the real part and the second being the imaginary part. - Thereβs a scaling factor (
<= 1), computed bySLALN2, chosen so thatXcan be computed without overflow.Xis further scaled if necessary to assure thatnorm(ca A - w D)*norm(X)is less than overflow. - If both singular values of
(ca A - w D)are less thanSMIN,SMIN*identitywill be used instead of(ca A - w D). If only one singular value is less thanSMIN, one element of(ca A - w D)will be perturbed enough to make the smallest singular value roughlySMIN. If both singular values are at leastSMIN,(ca A - w D)will not be perturbed. In any case, the perturbation will be at most some small multiple ofmax( SMIN, ulp*norm(ca A - w D) ). The singular values are computed by infinity-norm approximations, and thus will only be correct to a factor of2or so. - Note: all input quantities are assumed to be smaller than overflow by a reasonable factor. (See
BIGNUM.)
Thatβs the whole vibe check: no overflow chaos, pls. πβ¨
π Parameters π
LTRANSβ isLOGICAL.=.TRUE.: A-transpose will be used.=.FALSE.: A will be used (not transposed.)NAβ isINTEGER. The size of the matrixA. It may (only) be1or2.NWβ isINTEGER.1ifwis real,2ifwis complex. It may only be1or2.SMINβ isREAL. The desired lower bound on the singular values ofA. This should be a safe distance away from underflow or overflow, say, between(underflow/machine precision)and(machine precision * overflow ). (SeeBIGNUMandULP.)CAβ isREAL. The coefficientc, whichAis multiplied by.Aβ isREAL array, dimension (LDA,NA). TheNA x NAmatrixA.LDAβ isINTEGER. The leading dimension ofA. It must be at leastNA.D1β isREAL. The1,1element in the diagonal matrixD.D2β isREAL. The2,2element in the diagonal matrixD. Not used ifNA=1.Bβ isREAL array, dimension (LDB,NW). TheNA x NWmatrixB(right-hand side). IfNW=2(wis complex), column1contains the real part ofBand column2contains the imaginary part.LDBβ isINTEGER. The leading dimension ofB. It must be at leastNA.WRβ isREAL. The real part of the scalarw.WIβ isREAL. The imaginary part of the scalarw. Not used ifNW=1.Xβ isREAL array, dimension (LDX,NW). TheNA x NWmatrixX(unknowns), as computed bySLALN2. IfNW=2(wis complex), on exit, column1will contain the real part ofXand column2will contain the imaginary part.LDXβ isINTEGER. The leading dimension ofX. It must be at leastNA.SCALEβ isREAL. The scale factor thatBmust be multiplied by to insure that overflow does not occur when computingX. Thus,(ca A - w D) Xwill beSCALE*B, notB(ignoring perturbations ofA.) It will be at most1.XNORMβ isREAL. The infinity-norm ofX, whenXis regarded as anNA x NWreal matrix.INFOβ isINTEGER. An error flag. It will be set to zero if no error occurs, a negative number if an argument is in error, or a positive number ifca A - w Dhad to be perturbed. The possible values are:= 0: No error occurred, and(ca A - w D)did not have to be perturbed.= 1:(ca A - w D)had to be perturbed to make its smallest (or only) singular value greater thanSMIN. NOTE: In the interests of speed, this routine does not check the inputs for errors.
Bestie, that INFO note is highkey important: itβs speedy, but it does not check the inputs for errors. πβ¨
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 216 of file slaln2.f.
π Author (Doxygen-generated) π
Generated automatically by Doxygen for LAPACK from the source code. Slay, automation. π«Ά
This gorgeous page is LAPACK Version 3.12.0, and the footer path vibe is /home/abui...RC/slaln2.f(3) β thatβs the source/version moment, bestie. Bye! π
β¨πΈ
π¦ 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