TESTING/LIN/clarhs.f(3)
πΈ NAME πΈ
okay so this page is from the Library Functions Manual, and itβs literally all about TESTING/LIN/clarhs.f β the CLARHS subroutine. no cap, bestie π
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine clarhs (path, xtype, uplo, trans, m, n, kl, ku, nrhs, a, lda,
x, ldx, b, ldb, iseed, info)
CLARHS
π Function/Subroutine Documentation π
subroutine clarhs (character*3 path, character xtype, character uplo,
character trans, integer m, integer n, integer kl, integer ku, integer
nrhs, complex, dimension( lda, * ) a, integer lda, complex, dimension(
ldx, * ) x, integer ldx, complex, dimension( ldb, * ) b, integer ldb,
integer, dimension( 4 ) iseed, integer info)
CLARHS
π Purpose π
So CLARHS chooses a whole set of NRHS random solution vectors and sets up the right-hand sides for the linear system
op(A) * X = B,
where op(A) = A, A**T, or A**H, depending on TRANS. itβs giving βtest-matrix setup main character energyβ fr fr π₯
π Parameters π
PATHβPATHisCHARACTER*3. it tells you the type of the complex matrixA.PATHmay be given in any combination of upper and lower case. valid paths include:xGE: Generalm x nmatrixxGB: General banded matrixxPO: Hermitian positive definite, 2-D storagexPP: Hermitian positive definite packedxPB: Hermitian positive definite bandedxHE: Hermitian indefinite, 2-D storagexHP: Hermitian indefinite packedxHB: Hermitian indefinite bandedxSY: Symmetric indefinite, 2-D storagexSP: Symmetric indefinite packedxSB: Symmetric indefinite bandedxTR: TriangularxTP: Triangular packedxTB: Triangular bandedxQR: Generalm x nmatrixxLQ: Generalm x nmatrixxQL: Generalm x nmatrixxRQ: Generalm x nmatrix
where the leading character indicates the precision. iykyk β¨
XTYPEβXTYPEisCHARACTER*1. it specifies how the exact solutionXwill be determined:= 'N': New solution; generate a randomX.= 'C': Computed; use value ofXon entry.
UPLOβUPLOisCHARACTER*1. used only ifAis symmetric or triangular; specifies whether the upper or lower triangular part of the matrixAis stored.= 'U': Upper triangular= 'L': Lower triangular
TRANSβTRANSisCHARACTER*1. used only ifAis nonsymmetric; specifies the operation applied to the matrixA.= 'N':B := A * X(No transpose)= 'T':B := A**T * X(Transpose)= 'C':B := A**H * X(Conjugate transpose)
MβMisINTEGER. the number of rows of the matrixA.M >= 0.NβNisINTEGER. the number of columns of the matrixA.N >= 0.KLβKLisINTEGER. used only ifAis a band matrix; specifies the number of subdiagonals ofAifAis a general band matrix or ifAis symmetric or triangular andUPLO = 'L'; specifies the number of superdiagonals ofAifAis symmetric or triangular andUPLO = 'U'.0 <= KL <= M-1.KUβKUisINTEGER. used only ifAis a general band matrix or ifAis triangular.
If PATH = xGB, specifies the number of superdiagonals of A, and 0 <= KU <= N-1.
If PATH = xTR, xTP, or xTB, specifies whether or not the matrix has unit diagonal:
= 1: matrix has non-unit diagonal (default)= 2: matrix has unit diagonal
NRHSβNRHSisINTEGER. the number of right hand side vectors in the systemA*X = B. πAβAisCOMPLEXarray, dimension(LDA,N). the test matrix whose type is given byPATH.LDAβLDAisINTEGER. the leading dimension of the arrayA.- If
PATH = xGB,LDA >= KL+KU+1. - If
PATH = xPB,xSB,xHB, orxTB,LDA >= KL+1. - Otherwise,
LDA >= max(1,M).
- If
XβXis an input/outputCOMPLEXarray, dimension(LDX,NRHS). On entry, ifXTYPE = 'C'(for'Computed'), thenXcontains the exact solution to the system of linear equations. On exit, ifXTYPE = 'N'(for'New'), thenXis initialized with random values. π¦LDXβLDXisINTEGER. the leading dimension of the arrayX. IfTRANS = 'N',LDX >= max(1,N); ifTRANS = 'T',LDX >= max(1,M).BβBisCOMPLEXarray, dimension(LDB,NRHS). the right hand side vector(s) for the system of equations, computed fromB = op(A) * X, whereop(A)is determined byTRANS.LDBβLDBisINTEGER. the leading dimension of the arrayB. IfTRANS = 'N',LDB >= max(1,M); ifTRANS = 'T',LDB >= max(1,N).ISEEDβISEEDisINTEGERarray, dimension(4). the seed vector for the random number generator (used inCLATMS). modified on exit. not me forgetting that it changes πINFOβINFOisINTEGER.= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 206 of file clarhs.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
cute little sign-off bestie: this is LAPACK Version 3.12.0, page TESTING/LIN/clarhs.f(3) β slay, 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