File size: 3,715 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<html><!-- Created using the cpp_pretty_printer from the dlib C++ library.  See http://dlib.net for updates. --><head><title>dlib C++ Library - cblas_dger.c</title></head><body bgcolor='white'><pre>
<font color='#009900'>/*
 *
 * cblas_dger.c
 * This program is a C interface to dger.
 * Written by Keita Teranishi
 * 4/6/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>void</u></font> <b><a name='cblas_dger'></a>cblas_dger</b><font face='Lucida Console'>(</font><font color='#0000FF'>const</font> <font color='#0000FF'>enum</font> CBLAS_ORDER order, <font color='#0000FF'>const</font> CBLAS_INT_TYPE M, <font color='#0000FF'>const</font> CBLAS_INT_TYPE N,
                <font color='#0000FF'>const</font> <font color='#0000FF'><u>double</u></font> alpha, <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 color='#0000FF'>const</font> <font color='#0000FF'><u>double</u></font>  <font color='#5555FF'>*</font>Y, <font color='#0000FF'>const</font> CBLAS_INT_TYPE incY, <font color='#0000FF'><u>double</u></font>  <font color='#5555FF'>*</font>A, <font color='#0000FF'>const</font> CBLAS_INT_TYPE lda<font face='Lucida Console'>)</font>
<b>{</b>
<font color='#0000FF'>#ifdef</font> F77_INT
   F77_INT F77_M<font color='#5555FF'>=</font>M, F77_N<font color='#5555FF'>=</font>N, F77_lda<font color='#5555FF'>=</font>lda, F77_incX<font color='#5555FF'>=</font>incX, F77_incY<font color='#5555FF'>=</font>incY;
<font color='#0000FF'>#else</font>
   <font color='#0000FF'>#define</font> F77_M M
   <font color='#0000FF'>#define</font> F77_N N
   <font color='#0000FF'>#define</font> F77_incX incX
   <font color='#0000FF'>#define</font> F77_incY incY
   <font color='#0000FF'>#define</font> F77_lda lda
<font color='#0000FF'>#endif</font>


   <font color='#0000FF'>if</font> <font face='Lucida Console'>(</font>order <font color='#5555FF'>=</font><font color='#5555FF'>=</font> CblasColMajor<font face='Lucida Console'>)</font>
   <b>{</b>
      <font color='#BB00BB'>F77_dger</font><font face='Lucida Console'>(</font> <font color='#5555FF'>&amp;</font>F77_M, <font color='#5555FF'>&amp;</font>F77_N, <font color='#5555FF'>&amp;</font>alpha, X, <font color='#5555FF'>&amp;</font>F77_incX, Y, <font color='#5555FF'>&amp;</font>F77_incY, A, 
                      <font color='#5555FF'>&amp;</font>F77_lda<font face='Lucida Console'>)</font>;
   <b>}</b>
   <font color='#0000FF'>else</font> <font color='#0000FF'>if</font> <font face='Lucida Console'>(</font>order <font color='#5555FF'>=</font><font color='#5555FF'>=</font> CblasRowMajor<font face='Lucida Console'>)</font>
   <b>{</b>
      <font color='#BB00BB'>F77_dger</font><font face='Lucida Console'>(</font> <font color='#5555FF'>&amp;</font>F77_N, <font color='#5555FF'>&amp;</font>F77_M ,<font color='#5555FF'>&amp;</font>alpha, Y, <font color='#5555FF'>&amp;</font>F77_incY, X, <font color='#5555FF'>&amp;</font>F77_incX, A, 
                      <font color='#5555FF'>&amp;</font>F77_lda<font face='Lucida Console'>)</font>;

   <b>}</b>
   <font color='#0000FF'>else</font> <font color='#BB00BB'>cblas_xerbla</font><font face='Lucida Console'>(</font><font color='#979000'>1</font>, "<font color='#CC0000'>cblas_dger</font>", "<font color='#CC0000'>Illegal Order setting, %d\n</font>", order<font face='Lucida Console'>)</font>;
   <font color='#0000FF'>return</font>;
<b>}</b>

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