Revision 190, 0.6 kB
(checked in by smidl, 16 years ago)
|
adaptation of merger for changes and creation of datalink class
|
Line | |
---|
1 | #include <itpp/itbase.h> |
---|
2 | #include "../bdm/stat/libBM.h" |
---|
3 | #include "../bdm/math/libDC.h" |
---|
4 | #include "../bdm/math/chmat.h" |
---|
5 | |
---|
6 | using namespace itpp; |
---|
7 | |
---|
8 | //These lines are needed for use of cout and endl |
---|
9 | using std::cout; |
---|
10 | using std::endl; |
---|
11 | |
---|
12 | int main() |
---|
13 | { |
---|
14 | RV a = RV ( "{a }","2"); |
---|
15 | RV b = RV ( "{b }"); |
---|
16 | RV c = RV ( "{c }"); |
---|
17 | |
---|
18 | mpdf M1(concat(a,b),c); |
---|
19 | mpdf M2(a, concat(b,c)); |
---|
20 | |
---|
21 | datalink_mpdf dl(M2,M1); |
---|
22 | |
---|
23 | vec val("1 1.5 2"); |
---|
24 | vec cond("3"); |
---|
25 | |
---|
26 | cout << "val: " << val << endl; |
---|
27 | cout << "cond: " << cond << endl; |
---|
28 | |
---|
29 | cout << "lo val: " << dl.get_val(val) <<endl; |
---|
30 | cout << "lo cond: " << dl.get_cond(val,cond) <<endl; |
---|
31 | |
---|
32 | //getchar(); |
---|
33 | return 0; |
---|
34 | |
---|
35 | } |
---|