LAPACK  3.8.0
LAPACK: Linear Algebra PACKage

◆ LAPACKE_ztfsm()

lapack_int LAPACKE_ztfsm ( int  matrix_layout,
char  transr,
char  side,
char  uplo,
char  trans,
char  diag,
lapack_int  m,
lapack_int  n,
lapack_complex_double  alpha,
const lapack_complex_double a,
lapack_complex_double b,
lapack_int  ldb 
)

Definition at line 36 of file lapacke_ztfsm.c.

41 {
42  if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
43  LAPACKE_xerbla( "LAPACKE_ztfsm", -1 );
44  return -1;
45  }
46 #ifndef LAPACK_DISABLE_NAN_CHECK
47  if( LAPACKE_get_nancheck() ) {
48  /* Optionally check input matrices for NaNs */
49  if( IS_Z_NONZERO(alpha) ) {
50  if( LAPACKE_ztf_nancheck( matrix_layout, transr, uplo, diag, n, a ) ) {
51  return -10;
52  }
53  }
54  if( LAPACKE_z_nancheck( 1, &alpha, 1 ) ) {
55  return -9;
56  }
57  if( IS_Z_NONZERO(alpha) ) {
58  if( LAPACKE_zge_nancheck( matrix_layout, m, n, b, ldb ) ) {
59  return -11;
60  }
61  }
62  }
63 #endif
64  return LAPACKE_ztfsm_work( matrix_layout, transr, side, uplo, trans, diag, m,
65  n, alpha, a, b, ldb );
66 }
lapack_logical LAPACKE_ztf_nancheck(int matrix_layout, char transr, char uplo, char diag, lapack_int n, const lapack_complex_double *a)
lapack_logical LAPACKE_z_nancheck(lapack_int n, const lapack_complex_double *x, lapack_int incx)
#define LAPACK_ROW_MAJOR
Definition: lapacke.h:119
lapack_int LAPACKE_ztfsm_work(int matrix_layout, char transr, char side, char uplo, char trans, char diag, lapack_int m, lapack_int n, lapack_complex_double alpha, const lapack_complex_double *a, lapack_complex_double *b, lapack_int ldb)
#define LAPACK_COL_MAJOR
Definition: lapacke.h:120
void LAPACKE_xerbla(const char *name, lapack_int info)
lapack_logical LAPACKE_zge_nancheck(int matrix_layout, lapack_int m, lapack_int n, const lapack_complex_double *a, lapack_int lda)
#define IS_Z_NONZERO(x)
Definition: lapacke_utils.h:63
int LAPACKE_get_nancheck()
Here is the call graph for this function: