Statistics
| Revision:

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

History | View | Annotate | Download (969 Bytes)

1
/*
2
 * $Id: fvar_m32.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
// file fvar.cpp
12
// constructors, destructors and misc functions involving class prevariable
13

    
14
#include "fvar.hpp"
15

    
16
#ifdef __TURBOC__
17
  #pragma hdrstop
18
  #include <iostream.h>
19
#endif
20

    
21
#ifdef __ZTC__
22
  #include <iostream.hpp>
23
#endif
24

    
25

    
26
#include <stdio.h>
27
#ifndef __SUN__
28
#endif
29
#include <math.h>
30

    
31
/**
32
 * Description not yet available.
33
 * \param
34
 */
35
dvar_matrix mfexp(const dvar_matrix& m)
36
{
37
  dvar_matrix tmp;
38
  tmp.allocate(m.indexmin(),m.indexmax());
39
  for (int i=m.rowmin();i<=m.rowmax();i++)
40
  {
41
    tmp(i)=mfexp(m(i));
42
  }
43
  return tmp;
44
}
45

    
46
/**
47
 * Description not yet available.
48
 * \param
49
 */
50
dvar_matrix mfexp(const dvar_matrix& m, const double d)
51
{
52
  dvar_matrix tmp;
53
  tmp.allocate(m.indexmin(),m.indexmax());
54
  for (int i=m.rowmin();i<=m.rowmax();i++)
55
  {
56
    tmp(i)=mfexp(m(i),d);
57
  }
58
  return tmp;
59
}