Revision 1942 trunk/src/linad99/d3arr2b.cpp

d3arr2b.cpp (revision 1942)
14 14
 * Description not yet available.
15 15
 * \param
16 16
 */
17
d3_array operator/(const d3_array& m, CGNU_DOUBLE d)
18
   {
19
     d3_array tmp;
20
     tmp.allocate(m);
21
     for (int i=tmp.slicemin();i<=tmp.slicemax();i++)
22
     {
23
       tmp(i)=m(i)/d;
24
     }
25
     return tmp;
26
   }
27

  
17
d3_array operator/(const d3_array& m, const double d)
18
{
19
  d3_array tmp;
20
  tmp.allocate(m);
21
  for (int i=tmp.slicemin();i<=tmp.slicemax();i++)
22
  {
23
    tmp(i)=m(i)/d;
24
  }
25
  return tmp;
26
}
28 27
/**
29 28
 * Description not yet available.
30 29
 * \param
31 30
 */
32
   void d3_array::operator /= ( CGNU_DOUBLE d)
33
   {
34
     for (int i=slicemin();i<=slicemax();i++)
35
     {
36
       (*this)(i)/=d;
37
     }
38
   }
31
void d3_array::operator/=(const double d)
32
{
33
  for (int i=slicemin();i<=slicemax();i++)
34
  {
35
    (*this)(i) /= d;
36
  }
37
}

Also available in: Unified diff