TESTING/EIG/slsets.f(3)
π
TESTING/EIG/slsets.f β aka the slsets glow-up β¨
okay bestie, welcome to the manual page for TESTING/EIG/slsets.f, from the LAPACK Library Functions Manual. this is the test-driver page for SLSETS, and honestly it's giving "unsung hero of the test suite" energy π
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines
subroutine slsets (m, p, n, a, af, lda, b, bf, ldb, c, cf, d, df, x, work, lwork, rwork, result)β SLSETS
πΈ Function/Subroutine Documentation πΈ
subroutine slsets (integer m, integer p, integer n, real, dimension( lda, * ) a, real, dimension( lda, * ) af, integer lda, real, dimension( ldb, * ) b, real, dimension( ldb, * ) bf, integer ldb, real, dimension( * ) c, real, dimension( * ) cf, real, dimension( * ) d, real, dimension( * ) df, real, dimension( * ) x, real, dimension( lwork ) work, integer lwork, real, dimension( * ) rwork, real, dimension( 2 ) result)
SLSETS π
Purpose: π―
!>βSLSETS tests SGGLSE - a subroutine for solving linear equality constrained least square problem (LSE).
like, that's literally the whole job. it's the vibe check for SGGLSE, the solver for the linear equality constrained least square problem (LSE). it does not do the solving, it does the testing. main character energy π
π Parameters π
MβM is INTEGER, and it's the number of rows of the matrixA. constraint:M >= 0. no negatives, periodt π«PβP is INTEGER, the number of rows of the matrixB.P >= 0. keep it non-negative bestie πNβN is INTEGER, the number of columns of the matricesAandB.N >= 0. again, zero or up π―AβA is REAL array, dimension (LDA,N). it's theM-by-NmatrixA. iconic β¨AFβAF is REAL array, dimension (LDA,N). that's it, that's the whole description π«ΆLDAβLDA is INTEGER, the leading dimension of the arraysA,AF,QandR. requirement:LDA >= max(M,N). yes it has to coverQandRtoo, don't ask, it's a whole thing πBβB is REAL array, dimension (LDB,N). and the original really does call it "theP-by-NmatrixA" β not a typo we're allowed to fix, so we're passing it through untouched, fr fr π (it's theBmatrix, live with it)BFβBF is REAL array, dimension (LDB,N). short and sweet πΈLDBβLDB is INTEGER, the leading dimension of the arraysB,BF,VandS. requirement:LDB >= max(P,N). same deal asLDA, but for theBsquad πCβC is REAL array, dimension( M ), and it's the vectorCin the LSE problem. cute πCFβCF is REAL array, dimension( M ). nothing more to say πDβD is REAL array, dimension( P ), the vectorDin the LSE problem. matching set withCπDFβDF is REAL array, dimension( P ). slay πXβX is REAL array, dimension( N ), the solution vectorXin the LSE problem. the moment we've all been waiting for βWORKβWORK is REAL array, dimension (LWORK). workspace, obviously π§LWORKβLWORK is INTEGER, the dimension of the arrayWORK. size matters (for the array) πRWORKβRWORK is REAL array, dimension (M). real workspace, doing real work π₯RESULTβRESULT is REAL array, dimension (2), and these are the test ratios, the whole reason we're here. no cap:RESULT(1) = norm( A*x - c )/ norm(A)*norm(X)*EPSRESULT(2) = norm( B*x - d )/ norm(B)*norm(X)*EPS
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 153 of file slsets.f. π
π¦ Author π¦
Generated automatically by Doxygen for LAPACK from the source code. (yes, a robot wrote the page about the test routine β very meta, we love that for us π€)
and that's the whole page bestie, every option, every array, every constraint, nothing skipped π this little gem ships with LAPACK, Version 3.12.0, and the page itself is dated TESTING/EIG/slsets.f(3). go forth and test those least squares β¨ππ«Ά
π¦ 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