Skip to content

Commit

Permalink
Merge pull request #1023 from Goddan-wq/lapack_issue1021
Browse files Browse the repository at this point in the history
changing the order of loop to improve performance
  • Loading branch information
langou authored Jun 6, 2024
2 parents a4d0691 + 2bee293 commit 017dbf4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions SRC/cgetc2.f
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ SUBROUTINE CGETC2( N, A, LDA, IPIV, JPIV, INFO )
* Find max element in matrix A
*
XMAX = ZERO
DO 20 IP = I, N
DO 10 JP = I, N
DO 20 JP = I, N
DO 10 IP = I, N
IF( ABS( A( IP, JP ) ).GE.XMAX ) THEN
XMAX = ABS( A( IP, JP ) )
IPV = IP
Expand Down
4 changes: 2 additions & 2 deletions SRC/dgetc2.f
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ SUBROUTINE DGETC2( N, A, LDA, IPIV, JPIV, INFO )
* Find max element in matrix A
*
XMAX = ZERO
DO 20 IP = I, N
DO 10 JP = I, N
DO 20 JP = I, N
DO 10 IP = I, N
IF( ABS( A( IP, JP ) ).GE.XMAX ) THEN
XMAX = ABS( A( IP, JP ) )
IPV = IP
Expand Down
4 changes: 2 additions & 2 deletions SRC/sgetc2.f
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ SUBROUTINE SGETC2( N, A, LDA, IPIV, JPIV, INFO )
* Find max element in matrix A
*
XMAX = ZERO
DO 20 IP = I, N
DO 10 JP = I, N
DO 20 JP = I, N
DO 10 IP = I, N
IF( ABS( A( IP, JP ) ).GE.XMAX ) THEN
XMAX = ABS( A( IP, JP ) )
IPV = IP
Expand Down
4 changes: 2 additions & 2 deletions SRC/zgetc2.f
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ SUBROUTINE ZGETC2( N, A, LDA, IPIV, JPIV, INFO )
* Find max element in matrix A
*
XMAX = ZERO
DO 20 IP = I, N
DO 10 JP = I, N
DO 20 JP = I, N
DO 10 IP = I, N
IF( ABS( A( IP, JP ) ).GE.XMAX ) THEN
XMAX = ABS( A( IP, JP ) )
IPV = IP
Expand Down

0 comments on commit 017dbf4

Please sign in to comment.