Statistics
| Revision:

root / branches / pthreads-737 / src / linad99 / d4arr2.cpp @ 765

History | View | Annotate | Download (954 Bytes)

1
/*
2
 * $Id: d4arr2.cpp 542 2012-07-10 21:04:06Z johnoel $
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
6
 */
7
/**
8
 * \file
9
 * Description not yet available.
10
 */
11
#include "fvar.hpp"
12

    
13
/**
14
 * Description not yet available.
15
 * \param
16
 */
17
   void d4_array::operator /= (CGNU_DOUBLE d)
18
   {
19
     for (int i=indexmin();i<=indexmax();i++)
20
     {
21
       (*this)(i)/=d;
22
     }
23
   }  
24

    
25
/**
26
 * Description not yet available.
27
 * \param
28
 */
29
d4_array operator/(const d4_array& m, CGNU_DOUBLE d)
30
   {
31
     d4_array tmp;
32
     tmp.allocate(m);
33
     for (int i=tmp.indexmin();i<=tmp.indexmax();i++)
34
     {
35
       tmp(i)=m(i)/d;
36
     }
37
     return tmp;
38
   }  
39

    
40
/**
41
 * Description not yet available.
42
 * \param
43
 */
44
d4_array operator/(CGNU_DOUBLE d, const d4_array& m)
45
   {
46
     d4_array tmp;
47
     tmp.allocate(m);
48
     for (int i=tmp.indexmin();i<=tmp.indexmax();i++)
49
     {
50
       tmp(i)=d/m(i);
51
     }
52
     return tmp;
53
   }