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
13 changes: 6 additions & 7 deletions lapack-netlib/SRC/cpbtf2.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 CPBTF2 + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/cpbtf2.f">
*> [TGZ]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/cpbtf2.f">
*> [ZIP]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/cpbtf2.f">
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
Expand Down Expand Up @@ -110,7 +108,7 @@
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup complexOTHERcomputational
*> \ingroup pbtf2
*
*> \par Further Details:
* =====================
Expand Down Expand Up @@ -139,6 +137,7 @@
*>
* =====================================================================
SUBROUTINE CPBTF2( UPLO, N, KD, AB, LDAB, INFO )
IMPLICIT NONE
*
* -- LAPACK computational routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, --
Expand All @@ -164,8 +163,8 @@ SUBROUTINE CPBTF2( UPLO, N, KD, AB, LDAB, INFO )
REAL AJJ
* ..
* .. External Functions ..
LOGICAL LSAME
EXTERNAL LSAME
LOGICAL LSAME, SISNAN
EXTERNAL LSAME, SISNAN
* ..
* .. External Subroutines ..
EXTERNAL CHER, CLACGV, CSSCAL, XERBLA
Expand Down Expand Up @@ -209,7 +208,7 @@ SUBROUTINE CPBTF2( UPLO, N, KD, AB, LDAB, INFO )
* Compute U(J,J) and test for non-positive-definiteness.
*
AJJ = REAL( AB( KD+1, J ) )
IF( AJJ.LE.ZERO ) THEN
IF( AJJ.LE.ZERO.OR.SISNAN( AJJ ) ) THEN
AB( KD+1, J ) = AJJ
GO TO 30
END IF
Expand Down Expand Up @@ -237,7 +236,7 @@ SUBROUTINE CPBTF2( UPLO, N, KD, AB, LDAB, INFO )
* Compute L(J,J) and test for non-positive-definiteness.
*
AJJ = REAL( AB( 1, J ) )
IF( AJJ.LE.ZERO ) THEN
IF( AJJ.LE.ZERO.OR.SISNAN( AJJ ) ) THEN
AB( 1, J ) = AJJ
GO TO 30
END IF
Expand Down
16 changes: 8 additions & 8 deletions lapack-netlib/SRC/cpptrf.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 CPPTRF + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/cpptrf.f">
*> [TGZ]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/cpptrf.f">
*> [ZIP]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/cpptrf.f">
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
Expand Down Expand Up @@ -92,7 +90,7 @@
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup complexOTHERcomputational
*> \ingroup pptrf
*
*> \par Further Details:
* =====================
Expand All @@ -116,6 +114,7 @@
*>
* =====================================================================
SUBROUTINE CPPTRF( UPLO, N, AP, INFO )
IMPLICIT NONE
*
* -- LAPACK computational routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, --
Expand All @@ -141,9 +140,9 @@ SUBROUTINE CPPTRF( UPLO, N, AP, INFO )
REAL AJJ
* ..
* .. External Functions ..
LOGICAL LSAME
LOGICAL LSAME, SISNAN
COMPLEX CDOTC
EXTERNAL LSAME, CDOTC
EXTERNAL LSAME, CDOTC, SISNAN
* ..
* .. External Subroutines ..
EXTERNAL CHPR, CSSCAL, CTPSV, XERBLA
Expand Down Expand Up @@ -184,14 +183,15 @@ SUBROUTINE CPPTRF( UPLO, N, AP, INFO )
* Compute elements 1:J-1 of column J.
*
IF( J.GT.1 )
$ CALL CTPSV( 'Upper', 'Conjugate transpose', 'Non-unit',
$ CALL CTPSV( 'Upper', 'Conjugate transpose',
$ 'Non-unit',
$ J-1, AP, AP( JC ), 1 )
*
* Compute U(J,J) and test for non-positive-definiteness.
*
AJJ = REAL( REAL( AP( JJ ) ) - CDOTC( J-1,
$ AP( JC ), 1, AP( JC ), 1 ) )
IF( AJJ.LE.ZERO ) THEN
IF( AJJ.LE.ZERO.OR.SISNAN( AJJ ) ) THEN
AP( JJ ) = AJJ
GO TO 30
END IF
Expand All @@ -207,7 +207,7 @@ SUBROUTINE CPPTRF( UPLO, N, AP, INFO )
* Compute L(J,J) and test for non-positive-definiteness.
*
AJJ = REAL( AP( JJ ) )
IF( AJJ.LE.ZERO ) THEN
IF( AJJ.LE.ZERO.OR.SISNAN( AJJ ) ) THEN
AP( JJ ) = AJJ
GO TO 30
END IF
Expand Down
21 changes: 12 additions & 9 deletions lapack-netlib/SRC/cpttrf.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 CPTTRF + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/cpttrf.f">
*> [TGZ]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/cpttrf.f">
*> [ZIP]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/cpttrf.f">
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
Expand Down Expand Up @@ -85,10 +83,11 @@
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup complexPTcomputational
*> \ingroup pttrf
*
* =====================================================================
SUBROUTINE CPTTRF( N, D, E, INFO )
IMPLICIT NONE
*
* -- LAPACK computational routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, --
Expand All @@ -112,6 +111,10 @@ SUBROUTINE CPTTRF( N, D, E, INFO )
INTEGER I, I4
REAL EII, EIR, F, G
* ..
* .. External Functions ..
LOGICAL SISNAN
EXTERNAL SISNAN
* ..
* .. External Subroutines ..
EXTERNAL XERBLA
* ..
Expand All @@ -138,7 +141,7 @@ SUBROUTINE CPTTRF( N, D, E, INFO )
*
I4 = MOD( N-1, 4 )
DO 10 I = 1, I4
IF( D( I ).LE.ZERO ) THEN
IF( D( I ).LE.ZERO.OR.SISNAN( D( I ) ) ) THEN
INFO = I
GO TO 20
END IF
Expand All @@ -155,7 +158,7 @@ SUBROUTINE CPTTRF( N, D, E, INFO )
* Drop out of the loop if d(i) <= 0: the matrix is not positive
* definite.
*
IF( D( I ).LE.ZERO ) THEN
IF( D( I ).LE.ZERO.OR.SISNAN( D( I ) ) ) THEN
INFO = I
GO TO 20
END IF
Expand All @@ -169,7 +172,7 @@ SUBROUTINE CPTTRF( N, D, E, INFO )
E( I ) = CMPLX( F, G )
D( I+1 ) = D( I+1 ) - F*EIR - G*EII
*
IF( D( I+1 ).LE.ZERO ) THEN
IF( D( I+1 ).LE.ZERO.OR.SISNAN( D( I+1 ) ) ) THEN
INFO = I+1
GO TO 20
END IF
Expand All @@ -183,7 +186,7 @@ SUBROUTINE CPTTRF( N, D, E, INFO )
E( I+1 ) = CMPLX( F, G )
D( I+2 ) = D( I+2 ) - F*EIR - G*EII
*
IF( D( I+2 ).LE.ZERO ) THEN
IF( D( I+2 ).LE.ZERO.OR.SISNAN( D( I+2 ) ) ) THEN
INFO = I+2
GO TO 20
END IF
Expand All @@ -197,7 +200,7 @@ SUBROUTINE CPTTRF( N, D, E, INFO )
E( I+2 ) = CMPLX( F, G )
D( I+3 ) = D( I+3 ) - F*EIR - G*EII
*
IF( D( I+3 ).LE.ZERO ) THEN
IF( D( I+3 ).LE.ZERO.OR.SISNAN( D( I+3 ) ) ) THEN
INFO = I+3
GO TO 20
END IF
Expand All @@ -214,7 +217,7 @@ SUBROUTINE CPTTRF( N, D, E, INFO )
*
* Check d(n) for positive definiteness.
*
IF( D( N ).LE.ZERO )
IF( D( N ).LE.ZERO.OR.SISNAN( D( N ) ) )
$ INFO = N
*
20 CONTINUE
Expand Down
13 changes: 6 additions & 7 deletions lapack-netlib/SRC/dpbtf2.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 DPBTF2 + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dpbtf2.f">
*> [TGZ]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dpbtf2.f">
*> [ZIP]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dpbtf2.f">
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
Expand Down Expand Up @@ -110,7 +108,7 @@
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup doubleOTHERcomputational
*> \ingroup pbtf2
*
*> \par Further Details:
* =====================
Expand Down Expand Up @@ -139,6 +137,7 @@
*>
* =====================================================================
SUBROUTINE DPBTF2( UPLO, N, KD, AB, LDAB, INFO )
IMPLICIT NONE
*
* -- LAPACK computational routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, --
Expand All @@ -164,8 +163,8 @@ SUBROUTINE DPBTF2( UPLO, N, KD, AB, LDAB, INFO )
DOUBLE PRECISION AJJ
* ..
* .. External Functions ..
LOGICAL LSAME
EXTERNAL LSAME
LOGICAL LSAME, DISNAN
EXTERNAL LSAME, DISNAN
* ..
* .. External Subroutines ..
EXTERNAL DSCAL, DSYR, XERBLA
Expand Down Expand Up @@ -209,7 +208,7 @@ SUBROUTINE DPBTF2( UPLO, N, KD, AB, LDAB, INFO )
* Compute U(J,J) and test for non-positive-definiteness.
*
AJJ = AB( KD+1, J )
IF( AJJ.LE.ZERO )
IF( AJJ.LE.ZERO.OR.DISNAN( AJJ ) )
$ GO TO 30
AJJ = SQRT( AJJ )
AB( KD+1, J ) = AJJ
Expand All @@ -233,7 +232,7 @@ SUBROUTINE DPBTF2( UPLO, N, KD, AB, LDAB, INFO )
* Compute L(J,J) and test for non-positive-definiteness.
*
AJJ = AB( 1, J )
IF( AJJ.LE.ZERO )
IF( AJJ.LE.ZERO.OR.DISNAN( AJJ ) )
$ GO TO 30
AJJ = SQRT( AJJ )
AB( 1, J ) = AJJ
Expand Down
13 changes: 6 additions & 7 deletions lapack-netlib/SRC/dpptrf.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 DPPTRF + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dpptrf.f">
*> [TGZ]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dpptrf.f">
*> [ZIP]</a>
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dpptrf.f">
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
Expand Down Expand Up @@ -92,7 +90,7 @@
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup doubleOTHERcomputational
*> \ingroup pptrf
*
*> \par Further Details:
* =====================
Expand All @@ -116,6 +114,7 @@
*>
* =====================================================================
SUBROUTINE DPPTRF( UPLO, N, AP, INFO )
IMPLICIT NONE
*
* -- LAPACK computational routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, --
Expand All @@ -141,9 +140,9 @@ SUBROUTINE DPPTRF( UPLO, N, AP, INFO )
DOUBLE PRECISION AJJ
* ..
* .. External Functions ..
LOGICAL LSAME
LOGICAL LSAME, DISNAN
DOUBLE PRECISION DDOT
EXTERNAL LSAME, DDOT
EXTERNAL LSAME, DDOT, DISNAN
* ..
* .. External Subroutines ..
EXTERNAL DSCAL, DSPR, DTPSV, XERBLA
Expand Down Expand Up @@ -190,7 +189,7 @@ SUBROUTINE DPPTRF( UPLO, N, AP, INFO )
* Compute U(J,J) and test for non-positive-definiteness.
*
AJJ = AP( JJ ) - DDOT( J-1, AP( JC ), 1, AP( JC ), 1 )
IF( AJJ.LE.ZERO ) THEN
IF( AJJ.LE.ZERO.OR.DISNAN( AJJ ) ) THEN
AP( JJ ) = AJJ
GO TO 30
END IF
Expand All @@ -206,7 +205,7 @@ SUBROUTINE DPPTRF( UPLO, N, AP, INFO )
* Compute L(J,J) and test for non-positive-definiteness.
*
AJJ = AP( JJ )
IF( AJJ.LE.ZERO ) THEN
IF( AJJ.LE.ZERO.OR.DISNAN( AJJ ) ) THEN
AP( JJ ) = AJJ
GO TO 30
END IF
Expand Down
Loading
Loading