File size: 1,688 Bytes
9375c9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<html><!-- Created using the cpp_pretty_printer from the dlib C++ library.  See http://dlib.net for updates. --><head><title>dlib C++ Library - cblas_dnrm2.c</title></head><body bgcolor='white'><pre>
<font color='#009900'>/*
 * cblas_dnrm2.c
 *
 * The program is a C interface to dnrm2.
 * It calls the fortranwrapper before calling dnrm2.
 *
 * Written by Keita Teranishi.  2/11/1998
 *
 */</font>
<font color='#0000FF'>#include</font> "<a style='text-decoration:none' href='cblas.h.html'>cblas.h</a>"
<font color='#0000FF'>#include</font> "<a style='text-decoration:none' href='cblas_f77.h.html'>cblas_f77.h</a>"
<font color='#0000FF'><u>double</u></font> <b><a name='cblas_dnrm2'></a>cblas_dnrm2</b><font face='Lucida Console'>(</font> <font color='#0000FF'>const</font> CBLAS_INT_TYPE N, <font color='#0000FF'>const</font> <font color='#0000FF'><u>double</u></font> <font color='#5555FF'>*</font>X, <font color='#0000FF'>const</font> CBLAS_INT_TYPE incX<font face='Lucida Console'>)</font> 
<b>{</b>
   <font color='#0000FF'><u>double</u></font> nrm2;
<font color='#0000FF'>#ifdef</font> F77_INT
   F77_INT F77_N<font color='#5555FF'>=</font>N, F77_incX<font color='#5555FF'>=</font>incX;
<font color='#0000FF'>#else</font> 
   <font color='#0000FF'>#define</font> F77_N N
   <font color='#0000FF'>#define</font> F77_incX incX
<font color='#0000FF'>#endif</font>
   <font color='#BB00BB'>F77_dnrm2_sub</font><font face='Lucida Console'>(</font> <font color='#5555FF'>&amp;</font>F77_N, X, <font color='#5555FF'>&amp;</font>F77_incX, <font color='#5555FF'>&amp;</font>nrm2<font face='Lucida Console'>)</font>;
   <font color='#0000FF'>return</font> nrm2;
<b>}</b>

</pre></body></html>