LAPACK  3.8.0
LAPACK: Linear Algebra PACKage

◆ LAPACKE_slassq()

lapack_int LAPACKE_slassq ( lapack_int  n,
float *  x,
lapack_int  incx,
float *  scale,
float *  sumsq 
)

Definition at line 36 of file lapacke_slassq.c.

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