Statistics
| Revision:

root / trunk / src / linad99 / d3arr2b.cpp @ 1942

History | View | Annotate | Download (590 Bytes)

1
/*
2
 * $Id: d3arr2b.cpp 1942 2014-04-28 22:22:45Z 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
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
}
27
/**
28
 * Description not yet available.
29
 * \param
30
 */
31
void d3_array::operator/=(const double d)
32
{
33
  for (int i=slicemin();i<=slicemax();i++)
34
  {
35
    (*this)(i) /= d;
36
  }
37
}