00001 #include "regressions/regression.h" 00002 using namespace TooN; 00003 using namespace std; 00004 00005 int main() 00006 { 00007 Matrix<3,4> m; 00008 00009 m = Data(5.4388593399963903e-01, 00010 9.9370462412085203e-01, 00011 1.0969746452319418e-01, 00012 4.4837291206649532e-01, 00013 7.2104662057981139e-01, 00014 2.1867663239963386e-01, 00015 6.3591370975105699e-02, 00016 3.6581617683817125e-01, 00017 5.2249530577710213e-01, 00018 1.0579827325022817e-01, 00019 4.0457999585762583e-01, 00020 7.6350464084881342e-01); 00021 00022 cout << setprecision(20) << scientific; 00023 cout << m << endl; 00024 00025 QR_Lapack<3, 4> q(m); 00026 00027 cout << q.get_R() << endl; 00028 cout << q.get_Q() << endl; 00029 00030 cout << q.get_Q() * q.get_R() - m << endl; 00031 00032 } 00033