*
* Compute the 1-norm condition number of A.
*
- AINVNM = CLANHE( '1', UPLO, N, A, LDA,
+ IF ( N .NE. 0 ) THEN
+ AINVNM = CLANHE( '1', UPLO, N, A, LDA,
+ S_WORK_CLANHE )
- RCONDC = ( ONE / ANORM ) / AINVNM
+ RCONDC = ( ONE / ANORM ) / AINVNM
*
-* Restore the matrix A.
+* Restore the matrix A.
*
CALL CLACPY( UPLO, N, N, ASAV, LDA, A, LDA )
+ END IF
+
*
END IF
*
* Form the inverse of A.
*
CALL DPOTRI( UPLO, N, A, LDA, INFO )
+
+ IF ( N .NE. 0 ) THEN
+
*
-* Compute the 1-norm condition number of A.
+* Compute the 1-norm condition number of A.
*
- AINVNM = DLANSY( '1', UPLO, N, A, LDA,
+ AINVNM = DLANSY( '1', UPLO, N, A, LDA,
+ D_WORK_DLANSY )
- RCONDC = ( ONE / ANORM ) / AINVNM
+ RCONDC = ( ONE / ANORM ) / AINVNM
*
-* Restore the matrix A.
+* Restore the matrix A.
*
- CALL DLACPY( UPLO, N, N, ASAV, LDA, A, LDA )
+ CALL DLACPY( UPLO, N, N, ASAV, LDA, A, LDA )
+ END IF
*
END IF
*
* Form the inverse of A.
*
CALL SPOTRI( UPLO, N, A, LDA, INFO )
+
+ IF ( N .NE. 0 ) THEN
*
-* Compute the 1-norm condition number of A.
+* Compute the 1-norm condition number of A.
*
- AINVNM = SLANSY( '1', UPLO, N, A, LDA,
+ AINVNM = SLANSY( '1', UPLO, N, A, LDA,
+ S_WORK_SLANSY )
- RCONDC = ( ONE / ANORM ) / AINVNM
+ RCONDC = ( ONE / ANORM ) / AINVNM
*
-* Restore the matrix A.
+* Restore the matrix A.
*
- CALL SLACPY( UPLO, N, N, ASAV, LDA, A, LDA )
+ CALL SLACPY( UPLO, N, N, ASAV, LDA, A, LDA )
+ END IF
*
END IF
*
* Form the inverse of A.
*
CALL ZPOTRI( UPLO, N, A, LDA, INFO )
+
+ IF ( N .NE. 0 ) THEN
*
-* Compute the 1-norm condition number of A.
+* Compute the 1-norm condition number of A.
*
- AINVNM = ZLANHE( '1', UPLO, N, A, LDA,
+ AINVNM = ZLANHE( '1', UPLO, N, A, LDA,
+ D_WORK_ZLANHE )
- RCONDC = ( ONE / ANORM ) / AINVNM
+ RCONDC = ( ONE / ANORM ) / AINVNM
*
-* Restore the matrix A.
+* Restore the matrix A.
*
- CALL ZLACPY( UPLO, N, N, ASAV, LDA, A, LDA )
+ CALL ZLACPY( UPLO, N, N, ASAV, LDA, A, LDA )
+ END IF
*
END IF
*