Revision 192, 0.7 kB
(checked in by smidl, 16 years ago)
|
modification of datalinks and switch mprod and merger to use them
|
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 | RV a = RV ( "{a }","2" ); |
---|
14 | RV b = RV ( "{b }" ); |
---|
15 | RV c = RV ( "{c }" ); |
---|
16 | |
---|
17 | mpdf M1 ( concat ( a,b ),c ); |
---|
18 | mpdf M2 ( a, concat ( b,c ) ); |
---|
19 | |
---|
20 | datalink_m2m dl ( a,M2._rvc(),M1._rv(), M1._rvc() ); |
---|
21 | |
---|
22 | vec val ( "1 1.5 2" ); |
---|
23 | vec cond ( "3" ); |
---|
24 | |
---|
25 | cout << "val: " << val << endl; |
---|
26 | cout << "cond: " << cond << endl; |
---|
27 | |
---|
28 | cout << "lo val: " << dl.get_val ( val ) <<endl; |
---|
29 | cout << "lo cond: " << dl.get_cond ( val,cond ) <<endl; |
---|
30 | |
---|
31 | //getchar(); |
---|
32 | return 0; |
---|
33 | |
---|
34 | } |
---|