toon-members
[Top][All Lists]
Advanced

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

[Toon-members] TooN Cholesky.h


From: Gerhard Reitmayr
Subject: [Toon-members] TooN Cholesky.h
Date: Sun, 11 Feb 2007 13:20:12 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Gerhard Reitmayr <gerhard>      07/02/11 13:20:12

Modified files:
        .              : Cholesky.h 

Log message:
        updated dynamic Cholesky interface with some new methods from fixed 
Cholesky

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/Cholesky.h?cvsroot=toon&r1=1.14&r2=1.15

Patches:
Index: Cholesky.h
===================================================================
RCS file: /cvsroot/toon/TooN/Cholesky.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- Cholesky.h  23 Jan 2007 21:37:08 -0000      1.14
+++ Cholesky.h  11 Feb 2007 13:20:11 -0000      1.15
@@ -415,7 +415,10 @@
        }
        int get_rank() const { return rank; }
 
-       template <class V>
+       template <class V> inline
+       Vector<> inverse_times(const V& v) const { return backsub(v); }
+
+       template <class V> inline
        Vector<> backsub(const V& v) const
        {
            assert(v.size() == L.num_rows());
@@ -428,6 +431,10 @@
            return x;
        }
 
+       template <class V> double mahalanobis(const V& v) const {
+           return v * backsub(v);
+       }
+
        const Matrix<>& get_L() const {
            return L;
        }




reply via email to

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