-
Notifications
You must be signed in to change notification settings - Fork 0
/
recurrenceRelations.h
59 lines (45 loc) · 1.81 KB
/
recurrenceRelations.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef RECURRENCERELATIONS
#define RECURRENCERELATIONS
#include <Eigen/Core>
#include <boost/shared_ptr.hpp>
class RecurrenceRelations
{
public:
RecurrenceRelations( int orderInLoopOfTaylorSeries ):
orderInLoopOfTaylorSeries_( orderInLoopOfTaylorSeries ){}
double multiplyRecursive(
const Eigen::VectorXd &X_left, // dim: (order+1) x 1
const Eigen::VectorXd &U_left,
const Eigen::VectorXd &X_right,
const Eigen::VectorXd &U_right );
double V1overV2(
const Eigen::VectorXd &W, // dim: (order+1) x 1
const Eigen::VectorXd &V1,
const Eigen::VectorXd &V2 );
double divideRecursive(
const Eigen::VectorXd &W, // dim: (order+1) x 1
const Eigen::VectorXd &U_num,
const Eigen::VectorXd &U_denom,
const Eigen::VectorXd &X_denom );
double Um_over_Xn(const Eigen::VectorXd &W, // dim: (order+1) x 1
const Eigen::VectorXd &U_num,
const Eigen::VectorXd &U_denom,
const Eigen::VectorXd &X_denom );
double X1xV2_Recursive(
const Eigen::VectorXd &X_L, // dim: (order+1) x 1
const Eigen::VectorXd &U_L,
const Eigen::VectorXd &V_R );
double V1xV2(
const Eigen::VectorXd &V1, // dim: (order+1) x 1
const Eigen::VectorXd &V2 );
double X1xU2overX2_Recursive(
const Eigen::VectorXd &W, // dim: (order+1) x 1
const Eigen::VectorXd &X_L,
const Eigen::VectorXd &U_L,
const Eigen::VectorXd &X_R,
const Eigen::VectorXd &U_R);
private:
int orderInLoopOfTaylorSeries_;
};
typedef boost::shared_ptr< RecurrenceRelations > RecurrenceRelationsPointer;
#endif // RECURRENCERELATIONS