Go to the source code of this file.
|
| lapack_int | LAPACKE_dptrfs_work (int matrix_layout, lapack_int n, lapack_int nrhs, const double *d, const double *e, const double *df, const double *ef, const double *b, lapack_int ldb, double *x, lapack_int ldx, double *ferr, double *berr, double *work) |
◆ LAPACKE_dptrfs_work()
| lapack_int LAPACKE_dptrfs_work |
( |
int | matrix_layout, |
|
|
lapack_int | n, |
|
|
lapack_int | nrhs, |
|
|
const double * | d, |
|
|
const double * | e, |
|
|
const double * | df, |
|
|
const double * | ef, |
|
|
const double * | b, |
|
|
lapack_int | ldb, |
|
|
double * | x, |
|
|
lapack_int | ldx, |
|
|
double * | ferr, |
|
|
double * | berr, |
|
|
double * | work ) |
Definition at line 35 of file lapacke_dptrfs_work.c.
41{
44
45 LAPACK_dptrfs( &
n, &nrhs, d, e, df, ef, b, &ldb,
x, &ldx, ferr, berr,
46 work, &info );
47 if( info < 0 ) {
48 info = info - 1;
49 }
53 double* b_t = NULL;
54 double* x_t = NULL;
55
56 if( ldb < nrhs ) {
57 info = -9;
59 return info;
60 }
61 if( ldx < nrhs ) {
62 info = -11;
64 return info;
65 }
66
68 if( b_t == NULL ) {
70 goto exit_level_0;
71 }
73 if( x_t == NULL ) {
75 goto exit_level_1;
76 }
77
80
81 LAPACK_dptrfs( &
n, &nrhs, d, e, df, ef, b_t, &ldb_t, x_t, &ldx_t, ferr,
82 berr, work, &info );
83 if( info < 0 ) {
84 info = info - 1;
85 }
86
88
90exit_level_1:
92exit_level_0:
95 }
96 } else {
97 info = -1;
99 }
100 return info;
101}
#define LAPACKE_malloc(size)
#define LAPACK_TRANSPOSE_MEMORY_ERROR
void LAPACKE_xerbla(const char *name, lapack_int info)
void LAPACKE_dge_trans(int matrix_layout, lapack_int m, lapack_int n, const double *in, lapack_int ldin, double *out, lapack_int ldout)