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

Go to the source code of this file.

Functions

lapack_int LAPACKE_cgemqrt (int matrix_order, char side, char trans, lapack_int m, lapack_int n, lapack_int k, lapack_int nb, const lapack_complex_float *v, lapack_int ldv, const lapack_complex_float *t, lapack_int ldt, lapack_complex_float *c, lapack_int ldc)
 

Function Documentation

lapack_int LAPACKE_cgemqrt ( int  matrix_order,
char  side,
char  trans,
lapack_int  m,
lapack_int  n,
lapack_int  k,
lapack_int  nb,
const lapack_complex_float v,
lapack_int  ldv,
const lapack_complex_float t,
lapack_int  ldt,
lapack_complex_float c,
lapack_int  ldc 
)

Definition at line 36 of file lapacke_cgemqrt.c.

42 {
43  lapack_int info = 0;
44  lapack_complex_float* work = NULL;
45  if( matrix_order != LAPACK_COL_MAJOR && matrix_order != LAPACK_ROW_MAJOR ) {
46  LAPACKE_xerbla( "LAPACKE_cgemqrt", -1 );
47  return -1;
48  }
49 #ifndef LAPACK_DISABLE_NAN_CHECK
50  /* Optionally check input matrices for NaNs */
51  if( LAPACKE_cge_nancheck( matrix_order, m, n, c, ldc ) ) {
52  return -12;
53  }
54  if( LAPACKE_cge_nancheck( matrix_order, ldt, nb, t, ldt ) ) {
55  return -10;
56  }
57  if( LAPACKE_cge_nancheck( matrix_order, ldv, k, v, ldv ) ) {
58  return -8;
59  }
60 #endif
61  /* Allocate memory for working array(s) */
62  work = (lapack_complex_float*)
63  LAPACKE_malloc( sizeof(lapack_complex_float) * MAX(1,m) * MAX(1,nb) );
64  if( work == NULL ) {
66  goto exit_level_0;
67  }
68  /* Call middle-level interface */
69  info = LAPACKE_cgemqrt_work( matrix_order, side, trans, m, n, k, nb, v, ldv,
70  t, ldt, c, ldc, work );
71  /* Release memory and exit */
72  LAPACKE_free( work );
73 exit_level_0:
74  if( info == LAPACK_WORK_MEMORY_ERROR ) {
75  LAPACKE_xerbla( "LAPACKE_cgemqrt", info );
76  }
77  return info;
78 }
#define lapack_complex_float
Definition: lapacke.h:74
#define LAPACK_COL_MAJOR
Definition: lapacke.h:120
void LAPACKE_xerbla(const char *name, lapack_int info)
lapack_logical LAPACKE_cge_nancheck(int matrix_order, lapack_int m, lapack_int n, const lapack_complex_float *a, lapack_int lda)
#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
lapack_int LAPACKE_cgemqrt_work(int matrix_order, char side, char trans, lapack_int m, lapack_int n, lapack_int k, lapack_int nb, const lapack_complex_float *v, lapack_int ldv, const lapack_complex_float *t, lapack_int ldt, lapack_complex_float *c, lapack_int ldc, lapack_complex_float *work)
#define LAPACK_WORK_MEMORY_ERROR
Definition: lapacke.h:122
#define lapack_int
Definition: lapacke.h:47

Here is the call graph for this function: