toon-members
[Top][All Lists]
Advanced

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

[Toon-members] TooN Cholesky.h wls.h


From: Tom Drummond
Subject: [Toon-members] TooN Cholesky.h wls.h
Date: Fri, 17 Apr 2009 03:45:48 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Tom Drummond <twd20>    09/04/17 03:45:48

Modified files:
        .              : Cholesky.h wls.h 

Log message:
        Changed Cholesky to single size parameter argument
        - will introduce a SQSVD version of SVD for square matrices which also 
takes
        one size argument so that SQSVD can be used as a parameter argument for 
wls
        - also fixed the constructor of wls so that all its internals are 
constructed to the
        correct size in the dynamic case

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

Patches:
Index: Cholesky.h
===================================================================
RCS file: /cvsroot/toon/TooN/Cholesky.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- Cholesky.h  15 Apr 2009 15:50:29 -0000      1.31
+++ Cholesky.h  17 Apr 2009 03:45:48 -0000      1.32
@@ -69,14 +69,10 @@
 This uses the non-sqrt version of the decomposition
 giving symmetric M = L*D*L.T() where the diagonal of L contains ones
 @param Size the size of the matrix
address@hidden 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> {
+template <int Size=Dynamic, class Precision=double>
+class Cholesky {
 public:
        Cholesky(){}
 

Index: wls.h
===================================================================
RCS file: /cvsroot/toon/TooN/wls.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- wls.h       14 Apr 2009 12:42:37 -0000      1.13
+++ wls.h       17 Apr 2009 03:45:48 -0000      1.14
@@ -51,7 +51,9 @@
        /// Default constructor or construct with the number of dimensions for 
the Dynamic case
        WLS(int size=0) :
                my_C_inv(size,size),
-               my_vector(size)
+               my_vector(size),
+               my_decomposition(size),
+               my_my(size)
        {
                clear();
        }
@@ -147,7 +149,7 @@
 private:
        Matrix<Size,Size,Precision> my_C_inv;
        Vector<Size,Precision> my_vector;
-       Decomposition<Size,Size,Precision> my_decomposition;
+       Decomposition<Size,Precision> my_decomposition;
        Vector<Size,Precision> my_mu;
 
        // comment out to allow bitwise copying




reply via email to

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