toon-members
[Top][All Lists]
Advanced

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

[Toon-members] TooN Cholesky.h


From: Tom Drummond
Subject: [Toon-members] TooN Cholesky.h
Date: Fri, 10 Apr 2009 06:53:38 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Tom Drummond <twd20>    09/04/10 06:53:38

Modified files:
        .              : Cholesky.h 

Log message:
        default template parameter values and nasty hack to give Cholesky two 
parametric dimensions

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

Patches:
Index: Cholesky.h
===================================================================
RCS file: /cvsroot/toon/TooN/Cholesky.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- Cholesky.h  10 Apr 2009 00:31:06 -0000      1.27
+++ Cholesky.h  10 Apr 2009 06:53:37 -0000      1.28
@@ -43,8 +43,14 @@
 /// Only the lower half of the matrix is considered
 /// This uses the non-sqrt version of the decomposition
 /// giving symmetric M = L*D*L.T() where the diagonal of L contains ones
-template <int Size, class Precision=double>
-class Cholesky {
+/// @param Size the size of the matrix
+/// @param Cols also the size of the matrix (there to make Cholesky conform to 
other decompositions)
+/// @param Precision the precision of the entries in the matrix and its 
decomposition
+template <int Size=Dynamic, int Cols=Size, class Precision=double>
+class Cholesky;
+
+template <int Size, class Precision>
+class Cholesky<Size, Size, Precision> {
 public:
        Cholesky(){}
 




reply via email to

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