OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
lapacke_classq.c File Reference
#include "lapacke_utils.h"

Go to the source code of this file.

Functions

lapack_int LAPACKE_classq (lapack_int n, lapack_complex_float *x, lapack_int incx, float *scale, float *sumsq)

Function Documentation

◆ LAPACKE_classq()

lapack_int LAPACKE_classq ( lapack_int n,
lapack_complex_float * x,
lapack_int incx,
float * scale,
float * sumsq )

Definition at line 35 of file lapacke_classq.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_c_nancheck( n, 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_classq_work( n, x, incx, scale, sumsq );
53}
lapack_int LAPACKE_classq_work(lapack_int n, lapack_complex_float *x, lapack_int incx, float *scale, float *sumsq)
int LAPACKE_get_nancheck(void)
lapack_logical LAPACKE_c_nancheck(lapack_int n, const lapack_complex_float *x, lapack_int incx)
lapack_logical LAPACKE_s_nancheck(lapack_int n, const float *x, lapack_int incx)
n