00001 #include "regressions/regression.h"
00002
00003 int main()
00004 {
00005 Vector<5> v = makeVector(1, 2, 3, 4, 5);
00006 cout << v.slice<0,3>() << endl;
00007
00008 Matrix<3> m = Data(1, 2, 3, 4, 5, 6, 7, 8, 9);
00009 const Matrix<3> n = m;
00010
00011 cout << m.slice<0,0,2,2>() << endl;
00012 cout << n.slice<0,0,2,2>() << endl;
00013
00014 cout << m.slice(0,0,2,2) << endl;
00015 cout << n.slice(0,0,2,2) << endl;
00016
00017 const Vector<4> cv = makeVector(3,4,5,6);
00018 cout << cv.slice<0,2>() << endl;
00019 cout << cv.slice(0,2) << endl;
00020 }