00001 #include <TooN/TooN.h>
00002 using namespace std;
00003 using namespace TooN;
00004
00005 int main()
00006 {
00007 Vector<Resizable> r = makeVector(4.);
00008 cout << r << endl;
00009
00010
00011 Vector<> v1(makeVector(1, 2));
00012 r.resize(v1.size());
00013 r = v1;
00014 cout << r << endl;
00015
00016
00017 Vector<3> v2 = makeVector(2, 3, 4);
00018 r = v2;
00019 cout << r << endl;
00020
00021
00022 r.resize(10);
00023 r = Ones;
00024 cout << r << endl;
00025
00026
00027 r = Zeros(3);
00028 cout << r << endl;
00029
00030 r = makeVector(6, 7, 8, 9, 0);
00031 cout << r << endl;
00032
00033 r.resize(2);
00034 r[0]= 5;
00035 r[1] = 6;
00036
00037 cout << r << endl;
00038
00039
00040 }