ZSPT02(3)
π ZSPT02(3) β the residual-girlie of LAPACK (that's section 3 of the manual, bestie)
okay so real talk, this page lives at /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/zspt02.f and honestly the path is longer than my attention span. but she's iconic, so let's get into it π
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines
subroutine ZSPT02 (uplo, n, nrhs, a, x, ldx, b, ldb, rwork, resid)
ZSPT02 β that's her. that's the whole name. slay.
π Function/Subroutine Documentation π
subroutine ZSPT02 (character uplo, integer n, integer nrhs, complex*16,
dimension( * ) a, complex*16, dimension( ldx, * ) x, integer ldx,
complex*16, dimension( ldb, * ) b, integer ldb, double precision,
dimension( * ) rwork, double precision resid)
ZSPT02 π (yes the signature is doing the absolute most, but every single type spec is load-bearing, ngl)
πΈ Purpose
!> peep the comment block, it's giving documentation-core:
!>`` ZSPT02 computes the residual in the solution of a complex symmetric !> `system of linear equations A*x = b when packed storage is used for` `!> the coefficient matrix. The ratio computed is !> !>`` RESID = norm( B - A*X ) / ( norm(A) * norm(X) * EPS). !> !>`` where EPS is the machine precision.
so basically she checks how badly you fumbled the solve π and reports the ratio. it's giving quality control.
π¦ Parameters
UPLOβ!>``UPLO is CHARACTER*1!>`Specifies whether the upper or lower triangular part of the` `!>complex symmetric matrix A is stored:!>``= 'U': Upper triangular!>``= 'L': Lower triangularβ pick your fighter: upper or lower, no in-between πNβ!>``N is INTEGER!>``The number of rows and columns of the matrix A. N >= 0.β rows and columns, so she's square, and she refuses to go negative. we respect the boundary. π«ΆNRHSβ!>``NRHS is INTEGER!>`The number of columns of B, the matrix of right hand sides.` `!>NRHS >= 0.β how many right-hand sides we're serving today. zero is valid, we don't judge. β¨Aβ!>``A is COMPLEX*16 array, dimension (N*(N+1)/2)!>`The original complex symmetric matrix A, stored as a packed` `!>triangular matrix.β packed storage, so she's compact and mysterious.N*(N+1)/2is the whole vibe. πXβ!>``X is COMPLEX*16 array, dimension (LDX,NRHS)!>`The computed solution vectors for the system of linear` `!>equations.β the answers your solver claims it produced. we're checking receipts. π₯LDXβ!>``LDX is INTEGER!>``The leading dimension of the array X. LDX >= max(1,N).βLDX >= max(1,N), no exceptions, don't test her. πBβ!>``B is COMPLEX*16 array, dimension (LDB,NRHS)!>`On entry, the right hand side vectors for the system of` `!>linear equations.!>``On exit, B is overwritten with the difference B - A*X.β β οΈ heads up bestie: she *overwrites*Bon exit withB - A*X`. your original right-hand sides? gone. consider yourself warned π«ΆLDBβ!>``LDB is INTEGER!>``The leading dimension of the array B. LDB >= max(1,N).β same energy asLDX,LDB >= max(1,N). respect the leading dimension. πRWORKβ!>``RWORK is DOUBLE PRECISION array, dimension (N)β double precision scratch space of sizeN`. her little workspace. βRESIDβ!>``RESID is DOUBLE PRECISION!>`The maximum over the number of right hand sides of` `!>norm(B - A*X) / ( norm(A) * norm(X) * EPS ).β the final score: the max over all the right-hand sides ofnorm(B - A*X) / ( norm(A) * norm(X) * EPS ). low number = ate. high number = π
π§ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 121 of file zspt02.f.
π Author (the meta one)
Generated automatically by Doxygen for LAPACK from the source code. (she didn't write her own bio, the machine did it for her. main character energy fr fr π)
ok that's the whole page, no cap. every flag, every bound, every !> comment preserved, because we keep the facts and serve the vibe. periodt. π
LAPACK β Version 3.12.0 πΈ and the source path <cyan>/home/abui...IN/zspt02.f(3)</cyan> is stamped on the bottom like a lil' signature. mwah, bye bestie π«Άβ¨
π¦ 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