root/tests/datalink_test.cpp @ 260

Revision 254, 0.7 kB (checked in by smidl, 16 years ago)

create namespace bdm

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
6using namespace bdm;
7
8//These lines are needed for use of cout and endl
9using std::cout;
10using std::endl;
11
12int 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}
Note: See TracBrowser for help on using the browser.