00001 /* 00002 * cblas_dznrm2.c 00003 * 00004 * The program is a C interface to dznrm2. 00005 * It calls the fortran wrapper before calling dznrm2. 00006 * 00007 * Written by Keita Teranishi. 2/11/1998 00008 * 00009 */ 00010 #include "cblas.h" 00011 #include "cblas_f77.h" 00012 double cblas_dznrm2( const int N, const void *X, const int incX) 00013 { 00014 double nrm2; 00015 #ifdef F77_INT 00016 F77_INT F77_N=N, F77_incX=incX; 00017 #else 00018 #define F77_N N 00019 #define F77_incX incX 00020 #endif 00021 F77_dznrm2_sub( &F77_N, X, &F77_incX, &nrm2); 00022 return nrm2; 00023 }