Revision 254, 0.7 kB
(checked in by smidl, 15 years ago)
|
create namespace bdm
|
Rev | Line | |
---|
[190] | 1 | #include <itpp/itbase.h> |
---|
| 2 | #include "../bdm/stat/libBM.h" |
---|
| 3 | #include "../bdm/math/libDC.h" |
---|
| 4 | #include "../bdm/math/chmat.h" |
---|
| 5 | |
---|
[254] | 6 | using namespace bdm; |
---|
[190] | 7 | |
---|
| 8 | //These lines are needed for use of cout and endl |
---|
| 9 | using std::cout; |
---|
| 10 | using std::endl; |
---|
| 11 | |
---|
[192] | 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 | |
---|
[190] | 25 | cout << "val: " << val << endl; |
---|
| 26 | cout << "cond: " << cond << endl; |
---|
[192] | 27 | |
---|
| 28 | cout << "lo val: " << dl.get_val ( val ) <<endl; |
---|
| 29 | cout << "lo cond: " << dl.get_cond ( val,cond ) <<endl; |
---|
| 30 | |
---|
[190] | 31 | //getchar(); |
---|
| 32 | return 0; |
---|
| 33 | |
---|
| 34 | } |
---|