pstf2(3)
pstf2(3) π β Library Functions Manual
okay so bestie, welcome to pstf2(3) from the Library Functions Manual. This is literally the triangular factor, with pivoting panel, level 2 situation, and weβre in part 1, so buckle up. β¨
NAME
pstf2 β pstf2: triangular factor, with pivoting panel, level 2
SYNOPSIS
Functions
subroutine cpstf2 (uplo, n, a, lda, piv, rank, tol, work, info)βCPSTF2computes the Cholesky factorization with complete pivoting of complex Hermitian positive semidefinite matrix. πsubroutine dpstf2 (uplo, n, a, lda, piv, rank, tol, work, info)βDPSTF2computes the Cholesky factorization with complete pivoting of a real symmetric positive semidefinite matrix. πsubroutine spstf2 (uplo, n, a, lda, piv, rank, tol, work, info)βSPSTF2computes the Cholesky factorization with complete pivoting of a real symmetric positive semidefinite matrix. πΈsubroutine zpstf2 (uplo, n, a, lda, piv, rank, tol, work, info)βZPSTF2computes the Cholesky factorization with complete pivoting of a complex Hermitian positive semidefinite matrix. π¦
Detailed Description
okay so this is the bit where the page gives you a Detailed Description heading and then immediately dives into the function docs. iconic, honestly. π«Ά
Function Documentation
subroutine cpstf2
subroutine cpstf2 (character uplo, integer n, complex, dimension( lda, * ) a, integer lda, integer, dimension( n ) piv, integer rank, real tol, real, dimension( 2*n ) work, integer info)
CPSTF2 computes the Cholesky factorization with complete pivoting of a complex Hermitian positive semidefinite matrix. π
Purpose:
Bestie, CPSTF2 computes the Cholesky factorization with complete pivoting of a complex Hermitian positive semidefinite matrix A.
The factorization has the form:
P**T * A * P = U**H * U , if UPLO = 'U',
P**T * A * P = L * L**H, if UPLO = 'L',
where U is an upper triangular matrix and L is lower triangular, and P is stored as vector PIV.
This algorithm does not attempt to check that A is positive semidefinite. This version of the algorithm calls level 2 BLAS.
Parameters
UPLOβCHARACTER*1. Specifies whether the upper or lower triangular part of the symmetric matrixAis stored.= 'U':Upper triangular= 'L':Lower triangular
NβINTEGER. The order of the matrixA.N >= 0.AβCOMPLEXarray, dimension(LDA,N). On entry, the symmetric matrixA. IfUPLO = 'U', the leadingnbynupper triangular part ofAcontains the upper triangular part of the matrixA, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leadingnbynlower triangular part ofAcontains the lower triangular part of the matrixA, and the strictly upper triangular part ofAis not referenced.
On exit, if INFO = 0, the factor U or L from the Cholesky factorization as above.
PIVβINTEGERarray, dimension(N).PIVis such that the nonzero entries areP( PIV(K), K ) = 1.RANKβINTEGER. The rank ofAgiven by the number of steps the algorithm completed.TOLβREAL. User defined tolerance. IfTOL < 0, thenN*U*MAX( A( K,K ) )will be used. The algorithm terminates at the(K-1)ststep if thepivot <= TOL.LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).WORKβREALarray, dimension(2*N). Work space.INFOβINTEGER.< 0:IfINFO = -K, theK-th argument had an illegal value,= 0:algorithm completed successfully, and> 0:the matrixAis either rank deficient with computed rank as returned inRANK, or is not positive semidefinite. See Section 7 of LAPACK Working Note #161 for further information.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 141 of file cpstf2.f.
subroutine dpstf2
subroutine dpstf2 (character uplo, integer n, double precision, dimension( lda, * ) a, integer lda, integer, dimension( n ) piv, integer rank, double precision tol, double precision, dimension( 2*n ) work, integer info)
DPSTF2 computes the Cholesky factorization with complete pivoting of a real symmetric positive semidefinite matrix. π
Purpose:
DPSTF2 computes the Cholesky factorization with complete pivoting of a real symmetric positive semidefinite matrix A.
The factorization has the form:
P**T * A * P = U**T * U , if UPLO = 'U',
P**T * A * P = L * L**T, if UPLO = 'L',
where U is an upper triangular matrix and L is lower triangular, and P is stored as vector PIV.
This algorithm does not attempt to check that A is positive semidefinite. This version of the algorithm calls level 2 BLAS.
Parameters
UPLOβCHARACTER*1. Specifies whether the upper or lower triangular part of the symmetric matrixAis stored.= 'U':Upper triangular= 'L':Lower triangular
NβINTEGER. The order of the matrixA.N >= 0.AβDOUBLE PRECISIONarray, dimension(LDA,N). On entry, the symmetric matrixA. IfUPLO = 'U', the leadingnbynupper triangular part ofAcontains the upper triangular part of the matrixA, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leadingnbynlower triangular part ofAcontains the lower triangular part of the matrixA, and the strictly upper triangular part ofAis not referenced.
On exit, if INFO = 0, the factor U or L from the Cholesky factorization as above.
PIVβINTEGERarray, dimension(N).PIVis such that the nonzero entries areP( PIV(K), K ) = 1.RANKβINTEGER. The rank ofAgiven by the number of steps the algorithm completed.TOLβDOUBLE PRECISION. User defined tolerance. IfTOL < 0, thenN*U*MAX( A( K,K ) )will be used. The algorithm terminates at the(K-1)ststep if thepivot <= TOL.LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).WORKβDOUBLE PRECISIONarray, dimension(2*N). Work space.INFOβINTEGER.< 0:IfINFO = -K, theK-th argument had an illegal value,= 0:algorithm completed successfully, and> 0:the matrixAis either rank deficient with computed rank as returned inRANK, or is not positive semidefinite. See Section 7 of LAPACK Working Note #161 for further information.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 140 of file dpstf2.f.
subroutine spstf2
subroutine spstf2 (character uplo, integer n, real, dimension( lda, * ) a, integer lda, integer, dimension( n ) piv, integer rank, real tol, real, dimension( 2*n ) work, integer info)
SPSTF2 computes the Cholesky factorization with complete pivoting of a real symmetric positive semidefinite matrix. πΈ
Purpose:
SPSTF2 computes the Cholesky factorization with complete pivoting of a real symmetric positive semidefinite matrix A.
The factorization has the form:
P**T * A * P = U**T * U , if UPLO = 'U',
P**T * A * P = L * L**T, if UPLO = 'L',
where U is an upper triangular matrix and L is lower triangular, and P is stored as vector PIV.
This algorithm does not attempt to check that A is positive semidefinite. This version of the algorithm calls level 2 BLAS.
Parameters
UPLOβCHARACTER*1. Specifies whether the upper or lower triangular part of the symmetric matrixAis stored.= 'U':Upper triangular= 'L':Lower triangular
NβINTEGER. The order of the matrixA.N >= 0.AβREALarray, dimension(LDA,N). On entry, the symmetric matrixA. IfUPLO = 'U', the leadingnbynupper triangular part ofAcontains the upper triangular part of the matrixA, and the strictly lower triangular part ofAis not referenced. IfUPLO = 'L', the leadingnbynlower triangular part ofAcontains the lower triangular part of the matrixA, and the strictly upper triangular part ofAis not referenced.
On exit, if INFO = 0, the factor U or L from the Cholesky factorization as above.
PIVβINTEGERarray, dimension(N).PIVis such that the nonzero entries areP( PIV(K), K ) = 1.RANKβINTEGER. The rank ofAgiven by the number of steps the algorithm completed.TOLβREAL. User defined tolerance. IfTOL < 0, thenN*U*MAX( A( K,K ) )will be used. The algorithm terminates at the(K-1)ststep if thepivot <= TOL.LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).WORKβREALarray, dimension(2*N). Work space.
INFO
INFOβINFOisINTEGER. Here's the vibe check: ifINFO < 0andINFO = -K, the K-th argument had an illegal value (not it being messy π). IfINFO = 0, the algorithm completed successfully, slay β¨. IfINFO > 0, the matrix A is either rank deficient with computed rank as returned inRANK, or it's not positive semidefinite. See Section 7 of LAPACK Working Note #161 for further information. No cap.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 140 of file spstf2.f.
π¦ subroutine zpstf2 π¦
subroutine zpstf2 (character uplo, integer n, complex*16, dimension( lda, *
) a, integer lda, integer, dimension( n ) piv, integer rank, double
precision tol, double precision, dimension( 2*n ) work, integer info)
ZPSTF2 computes the Cholesky factorization with complete pivoting of a complex Hermitian positive semidefinite matrix. It's giving main character energy for sure. π
π― Purpose π―
ZPSTF2 computes the Cholesky factorization with complete pivoting of a complex Hermitian positive semidefinite matrix A. Obsessed.
The factorization has the form:
P**T * A * P = U**H * U , if UPLO = 'U',
P**T * A * P = L * L**H, if UPLO = 'L',
where U is an upper triangular matrix and L is lower triangular, and P is stored as vector PIV. Iconic.
This algorithm does not attempt to check that A is positive semidefinite. This version of the algorithm calls level 2 BLAS. Just so you know, bestie. π«Ά
π Parameters π
UPLOβUPLOisCHARACTER*1. Specifies whether the upper or lower triangular part of the symmetric matrix A is stored.= 'U':Upper triangular.= 'L':Lower triangular.NβNisINTEGER. The order of the matrix A.N >= 0.AβAisCOMPLEX*16 array, dimension (LDA,N). On entry, the symmetric matrix A. IfUPLO = 'U', the leading n by n upper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. IfUPLO = 'L', the leading n by n lower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced. On exit, ifINFO = 0, the factor U or L from the Cholesky factorization as above.PIVβPIVisINTEGER array, dimension (N).PIVis such that the nonzero entries areP( PIV(K), K ) = 1.RANKβRANKisINTEGER. The rank of A given by the number of steps the algorithm completed.TOLβTOLisDOUBLE PRECISION. User defined tolerance. IfTOL < 0, thenN*U*MAX( A( K,K ) )will be used. The algorithm terminates at the (K-1)st step if the pivot <=TOL.LDAβLDAisINTEGER. The leading dimension of the array A.LDA >= max(1,N).WORKβWORKisDOUBLE PRECISION array, dimension (2*N). Work space. Just doing its thing. π οΈINFOβINFOisINTEGER.< 0:IfINFO = -K, the K-th argument had an illegal value,= 0:algorithm completed successfully, and> 0:the matrix A is either rank deficient with computed rank as returned inRANK, or is not positive semidefinite. See Section 7 of LAPACK Working Note #161 for further information.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 141 of file zpstf2.f.
This whole thing was generated automatically by Doxygen for LAPACK from the source code. π
And the footer tea: LAPACK Version 3.12.0, man page pstf2(3). Periodt. π«Άβ¨
π¦ 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