MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / snrm2

Function snrm2

src/tests/correctness/blas-lapack.c:849–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847}
848
849float snrm2( int n, float *x, int incx)
850{
851#ifdef __APPLE__
852 //On OSX passing negative values for incx can lead to a
853 //a crash, so we catch it here (cf. Github issue #37).
854 if (n < 1 || incx < 1) {
855 return 0;
856 }
857 return cblas_snrm2(n, x, incx);
858#else
859 return snrm2_(&n, x, &incx);
860#endif
861}
862
863double dnrm2( int n, double *x, int incx)
864{

Callers 1

blasSnrm2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected