toon-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Toon-members] TooN/test chol.cc


From: Edward Rosten
Subject: [Toon-members] TooN/test chol.cc
Date: Thu, 22 Oct 2009 09:08:31 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Edward Rosten <edrosten>        09/10/22 09:08:31

Removed files:
        test           : chol.cc 

Log message:
        Removing unneeded file.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/test/chol.cc?cvsroot=toon&r1=1.1&r2=0

Patches:
Index: chol.cc
===================================================================
RCS file: chol.cc
diff -N chol.cc
--- chol.cc     3 Apr 2009 18:28:45 -0000       1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,37 +0,0 @@
-#include <TooN/Cholesky.h>
-
-#include <iostream>
-
-using namespace std;
-
-int main(int, char ** ){
-    
-    TooN::Matrix<3> t;
-    t[0] = TooN::makeVector(1,0.5, 0.5);
-    t[1] = TooN::makeVector(0.5, 2, 0.7);
-    t[2] = TooN::makeVector(0.5,0.7, 3);
-    
-    TooN::Cholesky<3> chol(t);
-    cout << chol.get_determinant() << endl;
-    
-    cout << t << "\n" <<  chol.get_inverse() << "\n" << t * chol.get_inverse() 
<< endl;
-    cout << chol.get_L() << endl;
-
-    TooN::Matrix<> t2(3,3);
-    t2[0] = TooN::makeVector(1,0.5, 0.5);
-    t2[1] = TooN::makeVector(0.5, 2, 0.7);
-    t2[2] = TooN::makeVector(0.5,0.7, 3);
-    
-    TooN::Cholesky<-1,float> chol2(t2);
-    
-    cout << t2 << "\n" <<  chol2.get_inverse() << "\n" << t2 * 
chol2.get_inverse() << endl;
-    cout << chol2.get_L() << endl;
-    
-    TooN::Vector<3> bla = TooN::makeVector(1,2,3);
-    
-    cout << chol.backsub(bla) << endl;
-    cout << chol.get_inverse() * bla << endl;
-    cout << chol.mahalanobis(bla) - bla * chol.backsub(bla) << endl;
-    
-    return 0;
-}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]