LAPACK  3.8.0
LAPACK: Linear Algebra PACKage

◆ LAPACKE_zlassq()

lapack_int LAPACKE_zlassq ( lapack_int  n,
lapack_complex_double x,
lapack_int  incx,
double *  scale,
double *  sumsq 
)

Definition at line 36 of file lapacke_zlassq.c.

38 {
39 #ifndef LAPACK_DISABLE_NAN_CHECK
40  if( LAPACKE_get_nancheck() ) {
41  /* Optionally check input vector `x` and in/out scalars `scale` and `sumsq` for NaNs */
42  if( LAPACKE_z_nancheck( 1+(n-2)*ABS(incx), x, incx ) ) {
43  return -2;
44  }
45  if( LAPACKE_d_nancheck( 1, scale, 1 ) ) {
46  return -4;
47  }
48  if( LAPACKE_d_nancheck( 1, sumsq, 1 ) ) {
49  return -5;
50  }
51  }
52 #endif
53  return LAPACKE_zlassq_work( n, x, incx, scale, sumsq );
54 }
lapack_logical LAPACKE_z_nancheck(lapack_int n, const lapack_complex_double *x, lapack_int incx)
int LAPACKE_get_nancheck()
lapack_logical LAPACKE_d_nancheck(lapack_int n, const double *x, lapack_int incx)
#define ABS(x)
Definition: lapacke_utils.h:44
lapack_int LAPACKE_zlassq_work(lapack_int n, lapack_complex_double *x, lapack_int incx, double *scale, double *sumsq)
Here is the call graph for this function: