toon-members
[Top][All Lists]
Advanced

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

[Toon-members] TooN so3.h


From: Gerhard Reitmayr
Subject: [Toon-members] TooN so3.h
Date: Wed, 28 Apr 2010 22:17:16 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Gerhard Reitmayr <gerhard>      10/04/28 22:17:16

Modified files:
        .              : so3.h 

Log message:
        small template fix to allow dynamically sized vectors as input for 
SO3::exp

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

Patches:
Index: so3.h
===================================================================
RCS file: /cvsroot/toon/TooN/so3.h,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -b -r1.45 -r1.46
--- so3.h       18 Apr 2010 09:49:18 -0000      1.45
+++ so3.h       28 Apr 2010 22:17:16 -0000      1.46
@@ -210,8 +210,9 @@
 ///@param B \f$\frac{1 - \cos \theta}{\theta^2}\f$
 ///@param R Matrix to hold the return value.
 ///@relates SO3
-template <typename Precision, typename VP, typename VA, typename MA>
-inline void rodrigues_so3_exp(const Vector<3,VP, VA>& w, const Precision A, 
const Precision B, Matrix<3,3,Precision,MA>& R){
+template <typename Precision, int S, typename VP, typename VA, typename MA>
+inline void rodrigues_so3_exp(const Vector<S,VP, VA>& w, const Precision A, 
const Precision B, Matrix<3,3,Precision,MA>& R){
+    SizeMismatch<3,S>::test(3, w.size());
        {
                const Precision wx2 = (Precision)w[0]*w[0];
                const Precision wy2 = (Precision)w[1]*w[1];




reply via email to

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