int main (int argc, const char * argv[])
{
/* Locals */
- double A[5][3] = {1,2,3,4,5,1,3,5,2,4,1,4,2,5,3};
- double b[5][2] = {-10,12,14,16,18,-3,14,12,16,16};
+ double A[5][3] = {{1,2,3},{4,5,1},{3,5,2},{4,1,4},{2,5,3}};
+ double b[5][2] = {{-10,12},{14,16},{18,-3},{14,12},{16,16}};
lapack_int info,m,n,lda,ldb,nrhs;
- int i,j;
/* Initialization */
m = 5;
/* Print Solution */
print_matrix_colmajor( "Solution", n, nrhs, *b, ldb );
printf( "\n" );
- exit( 0 );
+ exit( info );
} /* End of LAPACKE_dgels Example */
/* Locals */
lapack_int n, nrhs, lda, ldb, info;
int i, j;
- double normr, normb;
/* Local arrays */
- double *A, *b, *Acopy, *bcopy;
+ double *A, *b;
lapack_int *ipiv;
/* Default Value */
/* Locals */
lapack_int n, nrhs, lda, ldb, info;
int i, j;
- double normr, normb;
/* Local arrays */
- double *A, *b, *Acopy, *bcopy;
+ double *A, *b;
lapack_int *ipiv;
/* Default Value */
info = info - 1;
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
- lapack_int r = LAPACKE_lsame( side, 'r' ) ? k : k;
lapack_int lda_t = MAX(1,k);
lapack_int ldb_t = MAX(1,m);
lapack_int ldt_t = MAX(1,ldt);
info = info - 1;
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
- lapack_int r = LAPACKE_lsame( side, 'r' ) ? k : k;
lapack_int lda_t = MAX(1,k);
lapack_int ldb_t = MAX(1,m);
lapack_int ldt_t = MAX(1,ldt);
double LAPACKE_dlamch_work( char cmach )
{
- lapack_int info = 0;
- double res;
+ double res;
/* Call LAPACK function and adjust info */
res = LAPACK_dlamch( &cmach );
return res;
info = info - 1;
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
- lapack_int r = LAPACKE_lsame( side, 'r' ) ? k : k;
lapack_int lda_t = MAX(1,k);
lapack_int ldb_t = MAX(1,m);
lapack_int ldt_t = MAX(1,ldt);
info = info - 1;
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
- lapack_int r = LAPACKE_lsame( side, 'r' ) ? k : k;
lapack_int lda_t = MAX(1,k);
lapack_int ldb_t = MAX(1,m);
lapack_int ldt_t = MAX(1,ldt);
float LAPACKE_slamch_work( char cmach )
{
- lapack_int info = 0;
- float res;
+ float res;
/* Call LAPACK function and adjust info */
res = LAPACK_slamch( &cmach );
return res;
info = info - 1;
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
- lapack_int r = LAPACKE_lsame( side, 'r' ) ? k : k;
lapack_int lda_t = MAX(1,k);
lapack_int ldb_t = MAX(1,m);
lapack_int ldt_t = MAX(1,ldt);
info = info - 1;
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
- lapack_int r = LAPACKE_lsame( side, 'r' ) ? k : k;
lapack_int lda_t = MAX(1,k);
lapack_int ldb_t = MAX(1,m);
lapack_int ldt_t = MAX(1,ldt);
info = info - 1;
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
- lapack_int r = LAPACKE_lsame( side, 'r' ) ? k : k;
lapack_int lda_t = MAX(1,k);
lapack_int ldb_t = MAX(1,m);
lapack_int ldt_t = MAX(1,ldt);
info = info - 1;
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
- lapack_int r = LAPACKE_lsame( side, 'r' ) ? k : k;
lapack_int lda_t = MAX(1,k);
lapack_int ldb_t = MAX(1,m);
lapack_int ldt_t = MAX(1,ldt);