SRC/sla_lin_berr.f(3)
π SRC/sla_lin_berr.f(3) π
okay so this is the Library Functions Manual page for LAPACK, bestie β yes, the whole thing is about one little subroutine and itβs lowkey iconic. Letβs get into it. β¨
πΈ NAME πΈ
SRC/sla_lin_berr.fβ the source file for this page. Thatβs the whole name section, no cap.
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine sla_lin_berr (n, nz, nrhs, res, ayb, berr)βSLA_LIN_BERRcomputes a component-wise relative backward error. π
π Function/Subroutine Documentation π
π«Ά subroutine sla_lin_berr
subroutine sla_lin_berr (integer n, integer nz, integer nrhs, real,
dimension( n, nrhs ) res, real, dimension( n, nrhs ) ayb, real,
dimension( nrhs ) berr)
SLA_LIN_BERR computes a component-wise relative backward error. Periodt. π
β¨ Purpose β¨
Okay so the formula is literally this:
max(i) ( abs(R(i)) / ( abs(op(A_s))*abs(Y) + abs(B_s) )(i) )
where abs(Z) is the componentwise absolute value of the matrix or vector Z. π§
π Parameters π
NβINTEGER. The number of linear equations, i.e., the order of the matrixA.N >= 0. πNZβINTEGER. We add(NZ+1)*SLAMCH( 'Safe minimum' )toR(i)in the numerator to guard against spuriously zero residuals. Default value isN. π‘οΈNRHSβINTEGER. The number of right hand sides, i.e., the number of columns of the matricesAYB,RES, andBERR.NRHS >= 0. β¨RESβREAL array, dimension (N,NRHS). The residual matrix, i.e., the matrixRin the relative backward error formula above. πAYBβREAL array, dimension (N, NRHS). The denominator in the relative backward error formula above, i.e., the matrixabs(op(A_s))*abs(Y) + abs(B_s). The matricesA,Y, andBare from iterative refinement (seesla_gerfsx_extended.f). π₯BERRβREAL array, dimension (NRHS). The componentwise relative backward error from the formula above. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 100 of file sla_lin_berr.f. π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. So yeah, not a human wrote this page β itβs the Doxygen machine. π
π Thatβs a wrap, bestie β this page comes from the LAPACK manual, version 3.12.0, and the source is SRC/sla_lin_berr.f(3). The footer doesnβt give a date in this copy, so no invented date from me. Bye! π
β¨
π¦ 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