toon-members
[Top][All Lists]
Advanced

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

[Toon-members] TooN LU.h doc/documentation.h


From: Georg Klein
Subject: [Toon-members] TooN LU.h doc/documentation.h
Date: Mon, 22 Jun 2009 15:33:58 +0000

CVSROOT:        /sources/toon
Module name:    TooN
Changes by:     Georg Klein <georgklein>        09/06/22 15:33:58

Modified files:
        .              : LU.h 
        doc            : documentation.h 

Log message:
        Make both LU examples non-singular

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/LU.h?cvsroot=toon&r1=1.19&r2=1.20
http://cvs.savannah.gnu.org/viewcvs/TooN/doc/documentation.h?cvsroot=toon&r1=1.27&r2=1.28

Patches:
Index: LU.h
===================================================================
RCS file: /sources/toon/TooN/LU.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- LU.h        22 Jun 2009 15:23:11 -0000      1.19
+++ LU.h        22 Jun 2009 15:33:58 -0000      1.20
@@ -52,8 +52,8 @@
   // construct M
   Matrix<3> M;
   M[0] = makeVector(1,2,3);
-  M[1] = makeVector(4,5,6);
-  M[2] = makeVector(7,8,9);
+  M[1] = makeVector(3,2,1);
+  M[2] = makeVector(1,0,1);
   // construct c
   Vector<3> c = makeVector(2,3,4);
   // create the LU decomposition of M

Index: doc/documentation.h
===================================================================
RCS file: /sources/toon/TooN/doc/documentation.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- doc/documentation.h 18 Jun 2009 14:52:49 -0000      1.27
+++ doc/documentation.h 22 Jun 2009 15:33:58 -0000      1.28
@@ -373,10 +373,10 @@
        @code
        Matrix<3> A;
        A[0]=makeVector(1,2,3);
-       A[1]=makeVector(2,3,4);
-       A[2]=makeVector(3,2,1);
+       A[1]=makeVector(3,2,1);
+       A[2]=makeVector(1,0,1);
 
-       Vector<3> b = makeVector (2,4,5);
+       Vector<3> b = makeVector (2,3,4);
 
        // solve Ax=b using LU
        LU<3> luA(A);




reply via email to

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