BLAS/SRC/ctrsv.f(3)
β¨ BLAS/SRC/ctrsv.f β¨
okay bestie, welcome to the LAPACK corner of the manual, page BLAS/SRC/ctrsv.f(3) β this one is a Level 2 BLAS baddie and she is serving triangular solves π
πΈ NAME πΈ
BLAS/SRC/ctrsv.f β no cap, that's the whole name, that's the icon, that's the file π
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine ctrsv (uplo, trans, diag, n, a, lda, x, incx)β the one and onlyCTRSVπ
π Function/Subroutine Documentation π
subroutine ctrsv (character uplo, character trans, character diag, integer n, complex, dimension(lda,*) a, integer lda, complex, dimension(*) x, integer incx)
CTRSV π
Purpose:
so CTRSV solves one of these systems of equations, pick your fighter:
A*x = b, or A**T*x = b, or A**H*x = b,
where b and x are n element vectors and A is an n by n unit, or non-unit, upper or lower triangular matrix.
π¨ real talk bestie: No test for singularity or near-singularity is included in this routine. Such tests must be performed before calling this routine. she is not checking your work, she is just vibing and solving. if your matrix is singular that is a you problem π
Parameters π«Ά
UPLOβUPLOisCHARACTER*1. On entry,UPLOspecifies whether the matrix is an upper or lower triangular matrix as follows:UPLO = 'U' or 'u'βAis an upper triangular matrix. πUPLO = 'L' or 'l'βAis a lower triangular matrix. π
TRANSβTRANSisCHARACTER*1. On entry,TRANSspecifies the equations to be solved as follows:TRANS = 'N' or 'n'βA*x = b.TRANS = 'T' or 't'βA**T*x = b.TRANS = 'C' or 'c'βA**H*x = b.
DIAGβDIAGisCHARACTER*1. On entry,DIAGspecifies whether or notAis unit triangular as follows:DIAG = 'U' or 'u'βAis assumed to be unit triangular.DIAG = 'N' or 'n'βAis not assumed to be unit triangular.
NβNisINTEGER. On entry,Nspecifies the order of the matrixA.Nmust be at least zero. (zero is allowed, she's flexible like that β¨)AβAisCOMPLEXarray, dimension( LDA, N ). Before entry withUPLO = 'U' or 'u', the leadingnbynupper triangular part of the arrayAmust contain the upper triangular matrix and the strictly lower triangular part ofAis not referenced. Before entry withUPLO = 'L' or 'l', the leadingnbynlower triangular part of the arrayAmust contain the lower triangular matrix and the strictly upper triangular part ofAis not referenced. Note that whenDIAG = 'U' or 'u', the diagonal elements ofAare not referenced either, but are assumed to be unity. π (yes, that half of your array is just decorative, ignore her)LDAβLDAisINTEGER. On entry,LDAspecifies the first dimension ofAas declared in the calling (sub) program.LDAmust be at leastmax( 1, n ).XβXisCOMPLEXarray, dimension at least( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented arrayXmust contain thenelement right-hand side vectorb. On exit,Xis overwritten with the solution vectorx. π« she comes in asb, she leaves asxβ glow up fr frINCXβINCXisINTEGER. On entry,INCXspecifies the increment for the elements ofX.INCXmust not be zero. (not zero, bestie, do not do it, zero is forbidden)
Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad, the avengers of linear algebra π«Ά
Further Details: π§
Level 2 Blas routine.
-- Written on 22-October-1986.
Jack Dongarra, Argonne National Lab.
Jeremy Du Croz, Nag Central Office.
Sven Hammarling, Nag Central Office.
Richard Hanson, Sandia National Labs.
1986 and still eating, iconic behavior, periodt. π₯
Definition at line 148 of file ctrsv.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. (yes the robot wrote the docs, she's doing her best π)
and that's the whole page bestie!! Version 3.12.0, dated Tue Nov 28 2023 12:08:41, and yeah it lives at BLAS/SRC/ctrsv.f(3) β now go solve your triangular system, main character π
β¨π¦πΈπ
π¦ where this page comes from
- centos-stream 10: blas 3.12.0-7.el10 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms