Merge pull request #3212 from martin-frbg/lapack463

Initialize X and Y to zero for N=0 in xGGGLM (Reference-LAPACK PR463)
This commit is contained in:
Martin Kroeker 2021-05-02 18:44:59 +02:00 committed by GitHub
commit 114bbbc6d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 8 deletions

View File

@ -271,8 +271,15 @@
*
* Quick return if possible
*
IF( N.EQ.0 )
$ RETURN
IF( N.EQ.0 ) THEN
DO I = 1, M
X(I) = CZERO
END DO
DO I = 1, P
Y(I) = CZERO
END DO
RETURN
END IF
*
* Compute the GQR factorization of matrices A and B:
*

View File

@ -270,8 +270,15 @@
*
* Quick return if possible
*
IF( N.EQ.0 )
$ RETURN
IF( N.EQ.0 ) THEN
DO I = 1, M
X(I) = ZERO
END DO
DO I = 1, P
Y(I) = ZERO
END DO
RETURN
END IF
*
* Compute the GQR factorization of matrices A and B:
*

View File

@ -270,8 +270,15 @@
*
* Quick return if possible
*
IF( N.EQ.0 )
$ RETURN
IF( N.EQ.0 ) THEN
DO I = 1, M
X(I) = ZERO
END DO
DO I = 1, P
Y(I) = ZERO
END DO
RETURN
END IF
*
* Compute the GQR factorization of matrices A and B:
*

View File

@ -271,8 +271,15 @@
*
* Quick return if possible
*
IF( N.EQ.0 )
$ RETURN
IF( N.EQ.0 ) THEN
DO I = 1, M
X(I) = CZERO
END DO
DO I = 1, P
Y(I) = CZERO
END DO
RETURN
END IF
*
* Compute the GQR factorization of matrices A and B:
*