Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Paranthesis formatting.
  • Loading branch information
STCE2023 committed Oct 30, 2022
commit c43d27a8891ae96afbae5f2b59560a78f7f26cda
8 changes: 4 additions & 4 deletions LAPACKE/utils/lapacke_ctz_nancheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,18 @@ lapack_logical LAPACKE_ctz_nancheck( int matrix_layout, char direct, char uplo,
/* Fix offsets depending on the shape of the matrix */
if( front ) {
if( lower && m > n) {
rect_offset = tri_n * (!colmaj ? lda : 1);
rect_offset = tri_n * ( !colmaj ? lda : 1 );
} else if( !lower && n > m) {
rect_offset = tri_n * (colmaj ? lda : 1);
rect_offset = tri_n * ( colmaj ? lda : 1 );
}
} else {
if( m > n) {
tri_offset = rect_m * (!colmaj ? lda : 1);
tri_offset = rect_m * ( !colmaj ? lda : 1 );
if( !lower ) {
rect_offset = 0;
}
} else if( n > m) {
tri_offset = rect_n * (colmaj ? lda : 1);
tri_offset = rect_n * ( colmaj ? lda : 1 );
if( lower ) {
rect_offset = 0;
}
Expand Down
8 changes: 4 additions & 4 deletions LAPACKE/utils/lapacke_dtz_nancheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,18 @@ lapack_logical LAPACKE_dtz_nancheck( int matrix_layout, char direct, char uplo,
/* Fix offsets depending on the shape of the matrix */
if( front ) {
if( lower && m > n) {
rect_offset = tri_n * (!colmaj ? lda : 1);
rect_offset = tri_n * ( !colmaj ? lda : 1 );
} else if( !lower && n > m) {
rect_offset = tri_n * (colmaj ? lda : 1);
rect_offset = tri_n * ( colmaj ? lda : 1 );
}
} else {
if( m > n) {
tri_offset = rect_m * (!colmaj ? lda : 1);
tri_offset = rect_m * ( !colmaj ? lda : 1 );
if( !lower ) {
rect_offset = 0;
}
} else if( n > m) {
tri_offset = rect_n * (colmaj ? lda : 1);
tri_offset = rect_n * ( colmaj ? lda : 1 );
if( lower ) {
rect_offset = 0;
}
Expand Down
8 changes: 4 additions & 4 deletions LAPACKE/utils/lapacke_stz_nancheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,18 @@ lapack_logical LAPACKE_stz_nancheck( int matrix_layout, char direct, char uplo,
/* Fix offsets depending on the shape of the matrix */
if( front ) {
if( lower && m > n) {
rect_offset = tri_n * (!colmaj ? lda : 1);
rect_offset = tri_n * ( !colmaj ? lda : 1 );
} else if( !lower && n > m) {
rect_offset = tri_n * (colmaj ? lda : 1);
rect_offset = tri_n * ( colmaj ? lda : 1 );
}
} else {
if( m > n) {
tri_offset = rect_m * (!colmaj ? lda : 1);
tri_offset = rect_m * ( !colmaj ? lda : 1 );
if( !lower ) {
rect_offset = 0;
}
} else if( n > m) {
tri_offset = rect_n * (colmaj ? lda : 1);
tri_offset = rect_n * ( colmaj ? lda : 1 );
if( lower ) {
rect_offset = 0;
}
Expand Down
8 changes: 4 additions & 4 deletions LAPACKE/utils/lapacke_ztz_nancheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,18 @@ lapack_logical LAPACKE_ztz_nancheck( int matrix_layout, char direct, char uplo,
/* Fix offsets depending on the shape of the matrix */
if( front ) {
if( lower && m > n) {
rect_offset = tri_n * (!colmaj ? lda : 1);
rect_offset = tri_n * ( !colmaj ? lda : 1 );
} else if( !lower && n > m) {
rect_offset = tri_n * (colmaj ? lda : 1);
rect_offset = tri_n * ( colmaj ? lda : 1 );
}
} else {
if( m > n) {
tri_offset = rect_m * (!colmaj ? lda : 1);
tri_offset = rect_m * ( !colmaj ? lda : 1 );
if( !lower ) {
rect_offset = 0;
}
} else if( n > m) {
tri_offset = rect_n * (colmaj ? lda : 1);
tri_offset = rect_n * ( colmaj ? lda : 1 );
if( lower ) {
rect_offset = 0;
}
Expand Down