Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions lapack-netlib/SRC/chptrf.f
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download CHPTRF + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/chptrf.f">
*> [TGZ]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/chptrf.f">
*> [ZIP]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/chptrf.f">
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
Expand Down Expand Up @@ -107,7 +105,7 @@
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup complexOTHERcomputational
*> \ingroup hptrf
*
*> \par Further Details:
* =====================
Expand Down Expand Up @@ -156,6 +154,7 @@
*>
* =====================================================================
SUBROUTINE CHPTRF( UPLO, N, AP, IPIV, INFO )
IMPLICIT NONE
*
* -- LAPACK computational routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, --
Expand Down Expand Up @@ -187,10 +186,10 @@ SUBROUTINE CHPTRF( UPLO, N, AP, IPIV, INFO )
COMPLEX D12, D21, T, WK, WKM1, WKP1, ZDUM
* ..
* .. External Functions ..
LOGICAL LSAME
LOGICAL LSAME, SISNAN
INTEGER ICAMAX
REAL SLAPY2
EXTERNAL LSAME, ICAMAX, SLAPY2
EXTERNAL LSAME, ICAMAX, SLAPY2, SISNAN
* ..
* .. External Subroutines ..
EXTERNAL CHPR, CSSCAL, CSWAP, XERBLA
Expand Down Expand Up @@ -257,9 +256,11 @@ SUBROUTINE CHPTRF( UPLO, N, AP, IPIV, INFO )
COLMAX = ZERO
END IF
*
IF( MAX( ABSAKK, COLMAX ).EQ.ZERO ) THEN
IF( (MAX( ABSAKK, COLMAX ).EQ.ZERO) .OR.
$ SISNAN(ABSAKK) ) THEN
*
* Column K is zero: set INFO and continue
* Column K is zero or underflow, or contains a NaN:
* set INFO and continue
*
IF( INFO.EQ.0 )
$ INFO = K
Expand Down Expand Up @@ -460,9 +461,11 @@ SUBROUTINE CHPTRF( UPLO, N, AP, IPIV, INFO )
COLMAX = ZERO
END IF
*
IF( MAX( ABSAKK, COLMAX ).EQ.ZERO ) THEN
IF( (MAX( ABSAKK, COLMAX ).EQ.ZERO) .OR.
$ SISNAN(ABSAKK) ) THEN
*
* Column K is zero: set INFO and continue
* Column K is zero or underflow, or contains a NaN:
* set INFO and continue
*
IF( INFO.EQ.0 )
$ INFO = K
Expand Down Expand Up @@ -524,7 +527,8 @@ SUBROUTINE CHPTRF( UPLO, N, AP, IPIV, INFO )
* submatrix A(k:n,k:n)
*
IF( KP.LT.N )
$ CALL CSWAP( N-KP, AP( KNC+KP-KK+1 ), 1, AP( KPC+1 ),
$ CALL CSWAP( N-KP, AP( KNC+KP-KK+1 ), 1,
$ AP( KPC+1 ),
$ 1 )
KX = KNC + KP - KK
DO 80 J = KK + 1, KP - 1
Expand Down Expand Up @@ -592,7 +596,8 @@ SUBROUTINE CHPTRF( UPLO, N, AP, IPIV, INFO )
* where L(k) and L(k+1) are the k-th and (k+1)-th
* columns of L
*
D = SLAPY2( REAL( AP( K+1+( K-1 )*( 2*N-K ) / 2 ) ),
D = SLAPY2(
$ REAL( AP( K+1+( K-1 )*( 2*N-K ) / 2 ) ),
$ AIMAG( AP( K+1+( K-1 )*( 2*N-K ) / 2 ) ) )
D11 = REAL( AP( K+1+K*( 2*N-K-1 ) / 2 ) ) / D
D22 = REAL( AP( K+( K-1 )*( 2*N-K ) / 2 ) ) / D
Expand Down
24 changes: 14 additions & 10 deletions lapack-netlib/SRC/csptrf.f
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download CSPTRF + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/csptrf.f">
*> [TGZ]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/csptrf.f">
*> [ZIP]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/csptrf.f">
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
Expand Down Expand Up @@ -108,7 +106,7 @@
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup complexOTHERcomputational
*> \ingroup hptrf
*
*> \par Further Details:
* =====================
Expand Down Expand Up @@ -155,6 +153,7 @@
*>
* =====================================================================
SUBROUTINE CSPTRF( UPLO, N, AP, IPIV, INFO )
IMPLICIT NONE
*
* -- LAPACK computational routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, --
Expand Down Expand Up @@ -187,9 +186,9 @@ SUBROUTINE CSPTRF( UPLO, N, AP, IPIV, INFO )
COMPLEX D11, D12, D21, D22, R1, T, WK, WKM1, WKP1, ZDUM
* ..
* .. External Functions ..
LOGICAL LSAME
LOGICAL LSAME, SISNAN
INTEGER ICAMAX
EXTERNAL LSAME, ICAMAX
EXTERNAL LSAME, ICAMAX, SISNAN
* ..
* .. External Subroutines ..
EXTERNAL CSCAL, CSPR, CSWAP, XERBLA
Expand Down Expand Up @@ -256,9 +255,11 @@ SUBROUTINE CSPTRF( UPLO, N, AP, IPIV, INFO )
COLMAX = ZERO
END IF
*
IF( MAX( ABSAKK, COLMAX ).EQ.ZERO ) THEN
IF( (MAX( ABSAKK, COLMAX ).EQ.ZERO) .OR.
$ SISNAN(ABSAKK) ) THEN
*
* Column K is zero: set INFO and continue
* Column K is zero or underflow, or contains a NaN:
* set INFO and continue
*
IF( INFO.EQ.0 )
$ INFO = K
Expand Down Expand Up @@ -443,9 +444,11 @@ SUBROUTINE CSPTRF( UPLO, N, AP, IPIV, INFO )
COLMAX = ZERO
END IF
*
IF( MAX( ABSAKK, COLMAX ).EQ.ZERO ) THEN
IF( (MAX( ABSAKK, COLMAX ).EQ.ZERO) .OR.
$ SISNAN(ABSAKK) ) THEN
*
* Column K is zero: set INFO and continue
* Column K is zero or underflow, or contains a NaN:
* set INFO and continue
*
IF( INFO.EQ.0 )
$ INFO = K
Expand Down Expand Up @@ -506,7 +509,8 @@ SUBROUTINE CSPTRF( UPLO, N, AP, IPIV, INFO )
* submatrix A(k:n,k:n)
*
IF( KP.LT.N )
$ CALL CSWAP( N-KP, AP( KNC+KP-KK+1 ), 1, AP( KPC+1 ),
$ CALL CSWAP( N-KP, AP( KNC+KP-KK+1 ), 1,
$ AP( KPC+1 ),
$ 1 )
KX = KNC + KP - KK
DO 80 J = KK + 1, KP - 1
Expand Down
24 changes: 14 additions & 10 deletions lapack-netlib/SRC/dsptrf.f
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download DSPTRF + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dsptrf.f">
*> [TGZ]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dsptrf.f">
*> [ZIP]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dsptrf.f">
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
Expand Down Expand Up @@ -107,7 +105,7 @@
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup doubleOTHERcomputational
*> \ingroup hptrf
*
*> \par Further Details:
* =====================
Expand Down Expand Up @@ -156,6 +154,7 @@
*>
* =====================================================================
SUBROUTINE DSPTRF( UPLO, N, AP, IPIV, INFO )
IMPLICIT NONE
*
* -- LAPACK computational routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, --
Expand Down Expand Up @@ -186,9 +185,9 @@ SUBROUTINE DSPTRF( UPLO, N, AP, IPIV, INFO )
$ ROWMAX, T, WK, WKM1, WKP1
* ..
* .. External Functions ..
LOGICAL LSAME
LOGICAL LSAME, DISNAN
INTEGER IDAMAX
EXTERNAL LSAME, IDAMAX
EXTERNAL LSAME, IDAMAX, DISNAN
* ..
* .. External Subroutines ..
EXTERNAL DSCAL, DSPR, DSWAP, XERBLA
Expand Down Expand Up @@ -249,9 +248,11 @@ SUBROUTINE DSPTRF( UPLO, N, AP, IPIV, INFO )
COLMAX = ZERO
END IF
*
IF( MAX( ABSAKK, COLMAX ).EQ.ZERO ) THEN
IF( (MAX( ABSAKK, COLMAX ).EQ.ZERO) .OR.
$ DISNAN(ABSAKK) ) THEN
*
* Column K is zero: set INFO and continue
* Column K is zero or underflow, or contains a NaN:
* set INFO and continue
*
IF( INFO.EQ.0 )
$ INFO = K
Expand Down Expand Up @@ -437,9 +438,11 @@ SUBROUTINE DSPTRF( UPLO, N, AP, IPIV, INFO )
COLMAX = ZERO
END IF
*
IF( MAX( ABSAKK, COLMAX ).EQ.ZERO ) THEN
IF( (MAX( ABSAKK, COLMAX ).EQ.ZERO) .OR.
$ DISNAN(ABSAKK) ) THEN
*
* Column K is zero: set INFO and continue
* Column K is zero or underflow, or contains a NaN:
* set INFO and continue
*
IF( INFO.EQ.0 )
$ INFO = K
Expand Down Expand Up @@ -500,7 +503,8 @@ SUBROUTINE DSPTRF( UPLO, N, AP, IPIV, INFO )
* submatrix A(k:n,k:n)
*
IF( KP.LT.N )
$ CALL DSWAP( N-KP, AP( KNC+KP-KK+1 ), 1, AP( KPC+1 ),
$ CALL DSWAP( N-KP, AP( KNC+KP-KK+1 ), 1,
$ AP( KPC+1 ),
$ 1 )
KX = KNC + KP - KK
DO 80 J = KK + 1, KP - 1
Expand Down
24 changes: 14 additions & 10 deletions lapack-netlib/SRC/ssptrf.f
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download SSPTRF + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/ssptrf.f">
*> [TGZ]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/ssptrf.f">
*> [ZIP]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/ssptrf.f">
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
Expand Down Expand Up @@ -107,7 +105,7 @@
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup realOTHERcomputational
*> \ingroup hptrf
*
*> \par Further Details:
* =====================
Expand Down Expand Up @@ -154,6 +152,7 @@
*>
* =====================================================================
SUBROUTINE SSPTRF( UPLO, N, AP, IPIV, INFO )
IMPLICIT NONE
*
* -- LAPACK computational routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, --
Expand Down Expand Up @@ -184,9 +183,9 @@ SUBROUTINE SSPTRF( UPLO, N, AP, IPIV, INFO )
$ ROWMAX, T, WK, WKM1, WKP1
* ..
* .. External Functions ..
LOGICAL LSAME
LOGICAL LSAME, SISNAN
INTEGER ISAMAX
EXTERNAL LSAME, ISAMAX
EXTERNAL LSAME, ISAMAX, SISNAN
* ..
* .. External Subroutines ..
EXTERNAL SSCAL, SSPR, SSWAP, XERBLA
Expand Down Expand Up @@ -247,9 +246,11 @@ SUBROUTINE SSPTRF( UPLO, N, AP, IPIV, INFO )
COLMAX = ZERO
END IF
*
IF( MAX( ABSAKK, COLMAX ).EQ.ZERO ) THEN
IF( (MAX( ABSAKK, COLMAX ).EQ.ZERO) .OR.
$ SISNAN(ABSAKK) ) THEN
*
* Column K is zero: set INFO and continue
* Column K is zero or underflow, or contains a NaN:
* set INFO and continue
*
IF( INFO.EQ.0 )
$ INFO = K
Expand Down Expand Up @@ -435,9 +436,11 @@ SUBROUTINE SSPTRF( UPLO, N, AP, IPIV, INFO )
COLMAX = ZERO
END IF
*
IF( MAX( ABSAKK, COLMAX ).EQ.ZERO ) THEN
IF( (MAX( ABSAKK, COLMAX ).EQ.ZERO) .OR.
$ SISNAN(ABSAKK) ) THEN
*
* Column K is zero: set INFO and continue
* Column K is zero or underflow, or contains a NaN:
* set INFO and continue
*
IF( INFO.EQ.0 )
$ INFO = K
Expand Down Expand Up @@ -498,7 +501,8 @@ SUBROUTINE SSPTRF( UPLO, N, AP, IPIV, INFO )
* submatrix A(k:n,k:n)
*
IF( KP.LT.N )
$ CALL SSWAP( N-KP, AP( KNC+KP-KK+1 ), 1, AP( KPC+1 ),
$ CALL SSWAP( N-KP, AP( KNC+KP-KK+1 ), 1,
$ AP( KPC+1 ),
$ 1 )
KX = KNC + KP - KK
DO 80 J = KK + 1, KP - 1
Expand Down
Loading
Loading