LAPACK  3.5.0
LAPACK: Linear Algebra PACKage
 All Classes Files Functions Variables Typedefs Macros
lapacke_ztprfb.c File Reference
#include "lapacke_utils.h"
Include dependency graph for lapacke_ztprfb.c:

Go to the source code of this file.

Functions

lapack_int LAPACKE_ztprfb (int matrix_order, char side, char trans, char direct, char storev, lapack_int m, lapack_int n, lapack_int k, lapack_int l, const lapack_complex_double *v, lapack_int ldv, const lapack_complex_double *t, lapack_int ldt, lapack_complex_double *a, lapack_int lda, lapack_complex_double *b, lapack_int ldb)
 

Function Documentation

lapack_int LAPACKE_ztprfb ( int  matrix_order,
char  side,
char  trans,
char  direct,
char  storev,
lapack_int  m,
lapack_int  n,
lapack_int  k,
lapack_int  l,
const lapack_complex_double v,
lapack_int  ldv,
const lapack_complex_double t,
lapack_int  ldt,
lapack_complex_double a,
lapack_int  lda,
lapack_complex_double b,
lapack_int  ldb 
)

Definition at line 36 of file lapacke_ztprfb.c.

43 {
44  lapack_int info = 0;
45  lapack_int ldwork;
46  lapack_int work_size;
47  double* work = NULL;
48  if( matrix_order != LAPACK_COL_MAJOR && matrix_order != LAPACK_ROW_MAJOR ) {
49  LAPACKE_xerbla( "LAPACKE_ztprfb", -1 );
50  return -1;
51  }
52 #ifndef LAPACK_DISABLE_NAN_CHECK
53  /* Optionally check input matrices for NaNs */
54  if( LAPACKE_zge_nancheck( matrix_order, k, m, a, lda ) ) {
55  return -14;
56  }
57  if( LAPACKE_zge_nancheck( matrix_order, m, n, b, ldb ) ) {
58  return -16;
59  }
60  if( LAPACKE_zge_nancheck( matrix_order, ldt, k, t, ldt ) ) {
61  return -12;
62  }
63  if( LAPACKE_zge_nancheck( matrix_order, ldv, k, v, ldv ) ) {
64  return -10;
65  }
66 #endif
67  if (side=='l' || side=='L') {
68  ldwork = k;
69  work_size = MAX(1,ldwork) * MAX(1,n);
70  }
71  else {
72  ldwork = m;
73  work_size = MAX(1,ldwork) * MAX(1,k);
74  }
75 
76  /* Allocate memory for working array(s) */
77  work = (double*)
78  LAPACKE_malloc( sizeof(double) * work_size );
79  if( work == NULL ) {
81  goto exit_level_0;
82  }
83  /* Call middle-level interface */
84  info = LAPACKE_ztprfb_work( matrix_order, side, trans, direct, storev, m, n,
85  k, l, v, ldv, t, ldt, a, lda, b, ldb, work,
86  ldwork );
87  /* Release memory and exit */
88  LAPACKE_free( work );
89 exit_level_0:
90  if( info == LAPACK_WORK_MEMORY_ERROR ) {
91  LAPACKE_xerbla( "LAPACKE_ztprfb", info );
92  }
93  return info;
94 }
lapack_int LAPACKE_ztprfb_work(int matrix_order, char side, char trans, char direct, char storev, lapack_int m, lapack_int n, lapack_int k, lapack_int l, const lapack_complex_double *v, lapack_int ldv, const lapack_complex_double *t, lapack_int ldt, lapack_complex_double *a, lapack_int lda, lapack_complex_double *b, lapack_int ldb, const double *work, lapack_int ldwork)
#define LAPACK_COL_MAJOR
Definition: lapacke.h:120
lapack_logical LAPACKE_zge_nancheck(int matrix_order, lapack_int m, lapack_int n, const lapack_complex_double *a, lapack_int lda)
set ue cd $ADTTMP cat<< EOF > tmp f Program LinearEquations Implicit none Real b(3) integer i
#define LAPACK_ROW_MAJOR
Definition: lapacke.h:119
#define LAPACKE_malloc(size)
Definition: lapacke.h:110
#define MAX(x, y)
Definition: lapacke_utils.h:47
#define LAPACKE_free(p)
Definition: lapacke.h:113
#define LAPACK_WORK_MEMORY_ERROR
Definition: lapacke.h:122
set ue cd $ADTTMP cat<< EOF > tmp c void LAPACKE_xerbla(const char *name, lapack_int info)
Definition: xerbla-c:8
#define lapack_int
Definition: lapacke.h:47

Here is the call graph for this function: