Revision 1064 trunk/src/linad99/d4arr2.cpp

d4arr2.cpp (revision 1064)
14 14
 * Description not yet available.
15 15
 * \param
16 16
 */
17
   void d4_array::operator /= (CGNU_DOUBLE d)
17
   void d4_array::operator /= (double d)
18 18
   {
19 19
     for (int i=indexmin();i<=indexmax();i++)
20 20
     {
......
26 26
 * Description not yet available.
27 27
 * \param
28 28
 */
29
d4_array operator/(const d4_array& m, CGNU_DOUBLE d)
29
d4_array operator/(const d4_array& m, double d)
30 30
   {
31 31
     d4_array tmp;
32 32
     tmp.allocate(m);
......
41 41
 * Description not yet available.
42 42
 * \param
43 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
   }  
44
d4_array operator/(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
    for (int j=tmp(i).indexmin(); j <= tmp(i).indexmax(); j++)
51
    {
52
      tmp(i, j) = d / m(i, j);
53
    }
54
  }
55
  return tmp;
56
}  

Also available in: Unified diff