lapack_int ldc )
{
lapack_int info = 0;
- lapack_int ldwork = ( side=='l')?n:(( side=='r')?m:1);
+ lapack_int ldwork;
lapack_complex_float* work = NULL;
lapack_int ncols_v, nrows_v;
if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
return -9;
}
#endif
+ if( LAPACKE_lsame( side, 'l' ) ) {
+ ldwork = n;
+ } else if( LAPACKE_lsame( side, 'r' ) ) {
+ ldwork = m;
+ } else {
+ ldwork = 1;
+ }
/* Allocate memory for working array(s) */
work = (lapack_complex_float*)
LAPACKE_malloc( sizeof(lapack_complex_float) * ldwork * MAX(1,k) );
lapack_int ldc )
{
lapack_int info = 0;
- lapack_int ldwork = ( side=='l')?n:(( side=='r')?m:1);
+ lapack_int ldwork;
double* work = NULL;
lapack_int ncols_v, nrows_v;
if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
return -9;
}
#endif
+ if( LAPACKE_lsame( side, 'l' ) ) {
+ ldwork = n;
+ } else if( LAPACKE_lsame( side, 'r' ) ) {
+ ldwork = m;
+ } else {
+ ldwork = 1;
+ }
/* Allocate memory for working array(s) */
work = (double*)LAPACKE_malloc( sizeof(double) * ldwork * MAX(1,k) );
if( work == NULL ) {
lapack_int ldc )
{
lapack_int info = 0;
- lapack_int ldwork = ( side=='l')?n:(( side=='r')?m:1);
+ lapack_int ldwork;
float* work = NULL;
lapack_int ncols_v, nrows_v;
if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
return -9;
}
#endif
+ if( LAPACKE_lsame( side, 'l' ) ) {
+ ldwork = n;
+ } else if( LAPACKE_lsame( side, 'r' ) ) {
+ ldwork = m;
+ } else {
+ ldwork = 1;
+ }
/* Allocate memory for working array(s) */
work = (float*)LAPACKE_malloc( sizeof(float) * ldwork * MAX(1,k) );
if( work == NULL ) {
lapack_int ldc )
{
lapack_int info = 0;
- lapack_int ldwork = ( side=='l')?n:(( side=='r')?m:1);
+ lapack_int ldwork;
lapack_complex_double* work = NULL;
lapack_int ncols_v, nrows_v;
if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
return -9;
}
#endif
+ if( LAPACKE_lsame( side, 'l' ) ) {
+ ldwork = n;
+ } else if( LAPACKE_lsame( side, 'r' ) ) {
+ ldwork = m;
+ } else {
+ ldwork = 1;
+ }
/* Allocate memory for working array(s) */
work = (lapack_complex_double*)
LAPACKE_malloc( sizeof(lapack_complex_double) * ldwork * MAX(1,k) );