toon-members
[Top][All Lists]
Advanced

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

[Toon-members] TooN so3.h


From: Edward Rosten
Subject: [Toon-members] TooN so3.h
Date: Mon, 06 Jul 2009 14:45:10 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Edward Rosten <edrosten>        09/07/06 14:45:10

Modified files:
        .              : so3.h 

Log message:
        Fixed adjoint to accept vectors properly.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/so3.h?cvsroot=toon&r1=1.38&r2=1.39

Patches:
Index: so3.h
===================================================================
RCS file: /cvsroot/toon/TooN/so3.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- so3.h       18 Jun 2009 14:48:19 -0000      1.38
+++ so3.h       6 Jul 2009 14:45:10 -0000       1.39
@@ -159,7 +159,11 @@
        /// \f$ M \f$, the adjoint \f$Adj()\f$ obeys
        /// \f$ e^{\text{Adj}(v)} = Me^{v}M^{-1} \f$
        template <int S, typename A>
-       inline Vector<3, Precision> adjoint(Vector<3, Precision, A> vect) const 
{ return *this * vect; }
+       inline Vector<3, Precision> adjoint(const Vector<S, Precision, A>& 
vect) const 
+       { 
+               SizeMismatch<3, S>::test(3, vect.size());
+               return *this * vect; 
+       }
        
 private:
        struct Invert {};




reply via email to

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