Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LAPACK_*lansy routines #640

Merged
merged 1 commit into from
Sep 10, 2015
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
4 changes: 2 additions & 2 deletions lapack-netlib/lapacke/src/lapacke_clansy.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ float LAPACKE_clansy( int matrix_order, char norm, char uplo, lapack_int n,
#endif
/* Allocate memory for working array(s) */
if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) ||
LAPACKE_lsame( norm, '0' ) ) {
LAPACKE_lsame( norm, 'O' ) ) {
work = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,n) );
if( work == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
Expand All @@ -62,7 +62,7 @@ float LAPACKE_clansy( int matrix_order, char norm, char uplo, lapack_int n,
res = LAPACKE_clansy_work( matrix_order, norm, uplo, n, a, lda, work );
/* Release memory and exit */
if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) ||
LAPACKE_lsame( norm, '0' ) ) {
LAPACKE_lsame( norm, 'O' ) ) {
LAPACKE_free( work );
}
exit_level_0:
Expand Down
4 changes: 2 additions & 2 deletions lapack-netlib/lapacke/src/lapacke_dlansy.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ double LAPACKE_dlansy( int matrix_order, char norm, char uplo, lapack_int n,
#endif
/* Allocate memory for working array(s) */
if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) ||
LAPACKE_lsame( norm, '0' ) ) {
LAPACKE_lsame( norm, 'O' ) ) {
work = (double*)LAPACKE_malloc( sizeof(double) * MAX(1,n) );
if( work == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
Expand All @@ -62,7 +62,7 @@ double LAPACKE_dlansy( int matrix_order, char norm, char uplo, lapack_int n,
res = LAPACKE_dlansy_work( matrix_order, norm, uplo, n, a, lda, work );
/* Release memory and exit */
if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) ||
LAPACKE_lsame( norm, '0' ) ) {
LAPACKE_lsame( norm, 'O' ) ) {
LAPACKE_free( work );
}
exit_level_0:
Expand Down
4 changes: 2 additions & 2 deletions lapack-netlib/lapacke/src/lapacke_slansy.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ float LAPACKE_slansy( int matrix_order, char norm, char uplo, lapack_int n,
#endif
/* Allocate memory for working array(s) */
if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) ||
LAPACKE_lsame( norm, '0' ) ) {
LAPACKE_lsame( norm, 'O' ) ) {
work = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,n) );
if( work == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
Expand All @@ -62,7 +62,7 @@ float LAPACKE_slansy( int matrix_order, char norm, char uplo, lapack_int n,
res = LAPACKE_slansy_work( matrix_order, norm, uplo, n, a, lda, work );
/* Release memory and exit */
if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) ||
LAPACKE_lsame( norm, '0' ) ) {
LAPACKE_lsame( norm, 'O' ) ) {
LAPACKE_free( work );
}
exit_level_0:
Expand Down
4 changes: 2 additions & 2 deletions lapack-netlib/lapacke/src/lapacke_zlansy.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ double LAPACKE_zlansy( int matrix_order, char norm, char uplo, lapack_int n,
#endif
/* Allocate memory for working array(s) */
if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) ||
LAPACKE_lsame( norm, '0' ) ) {
LAPACKE_lsame( norm, 'O' ) ) {
work = (double*)LAPACKE_malloc( sizeof(double) * MAX(1,n) );
if( work == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
Expand All @@ -62,7 +62,7 @@ double LAPACKE_zlansy( int matrix_order, char norm, char uplo, lapack_int n,
res = LAPACKE_zlansy_work( matrix_order, norm, uplo, n, a, lda, work );
/* Release memory and exit */
if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) ||
LAPACKE_lsame( norm, '0' ) ) {
LAPACKE_lsame( norm, 'O' ) ) {
LAPACKE_free( work );
}
exit_level_0:
Expand Down