• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * auto_diff_types.h
3  *
4  *  Created on: 18 Apr 2013
5  *      Author: s0965328
6  */
7 
8 #ifndef AUTO_DIFF_TYPES_H_
9 #define AUTO_DIFF_TYPES_H_
10 
11 namespace AutoDiff{
12 
13 #define FORWARD_ENABLED 0
14 #if FORWARD_ENABLED
15 extern unsigned int num_var;
16 #endif
17 
18 #define NaN_Double std::numeric_limits<double>::quiet_NaN()
19 
20 typedef enum { OPNode_Type=0, VNode_Type, PNode_Type} TYPE;
21 
22 
23 typedef enum {OP_PLUS=0, OP_MINUS, OP_TIMES, OP_DIVID, OP_SIN, OP_COS, OP_SQRT, OP_POW, OP_NEG} OPCODE;
24 
25 }
26 #endif /* AUTO_DIFF_TYPES_H_ */
27