Debian Codegraph @

orocos_kdl/src/utilities/rall2d.h

raw symbols SCIP
1
2 /*****************************************************************************
3 * \file
4 * class for automatic differentiation on scalar values and 1st
5 * derivatives and 2nd derivative.
6 *
7 * \author
8 * Erwin Aertbelien, Div. PMA, Dep. of Mech. Eng., K.U.Leuven
9 *
10 * \version
11 * ORO_Geometry V0.2
12 *
13 * \par Note
14 * VC6++ contains a bug, concerning the use of inlined friend functions
15 * in combination with namespaces. So, try to avoid inlined friend
16 * functions !
17 *
18 * \par History
19 * - $log$
20 *
21 * \par Release
22 * $Id: rall2d.h,v 1.1.1.1 2002/08/26 14:14:21 rmoreas Exp $
23 * $Name: $
24 ****************************************************************************/
25
26 #ifndef Rall2D_H
27 #define Rall2D_Hcxx . . $ `orocos_kdl/src/utilities/rall2d.h:27:9`!
28
29 #include <math.h>
30 #include <assert.h>
31 #include "utility.h"cxx . . $ `<file>/orocos_kdl/src/utilities/utility.h`/
32
33
34 namespace KDLcxx . . $ KDL/ {
35
36 /**
37 * Rall2d contains a value, and its gradient and its 2nd derivative, and defines an algebraic
38 * structure on this pair.
39 * This template class has 3 template parameters :
40 * - T contains the type of the value.
41 * - V contains the type of the gradient (can be a vector-like type).
42 * - S defines a scalar type that can operate on Rall1d. This is the type that
43 * is used to give back values of Norm() etc.
44 *
45 * S is useful when you recurse a Rall1d object into itself to create a 2nd, 3rd, 4th,..
46 * derivatives. (e.g. Rall1d< Rall1d<double>, Rall1d<double>, double> ).
47 *
48 * S is always passed by value.
49 *
50 * \par Class Type
51 * Concrete implementation
52 */
53 template <class T,class V=T,class S=T>
54 class Rall2dcxx . . $ KDL/Rall2d#
55 {
56 public :
57 T tcxx . . $ KDL/Rall2d#t.; //!< value
58 V dcxx . . $ KDL/Rall2d#d.; //!< 1st derivative
59 V ddcxx . . $ KDL/Rall2d#dd.; //!< 2nd derivative
60 public :
61 // = Constructors
62 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#`Rall2d<T, V, S>`(49f6e7a06ebc5aa8).():tcxx . . $ KDL/Rall2d#t.(),dcxx . . $ KDL/Rall2d#d.(),ddcxx . . $ KDL/Rall2d#dd.() {};
63
64 explicit INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#`Rall2d<T, V, S>`(29f8ab7de4db1db8).(typename TIcxx . . $ KDL/TI#<T>::Arg c)
65 {tcxx . . $ KDL/Rall2d#t.=c;SetToZerocxx . . $ KDL/SetToZero(9f1423c7ef701636).(dcxx . . $ KDL/Rall2d#d.);SetToZerocxx . . $ KDL/SetToZero(373a3304be17e007).(ddcxx . . $ KDL/Rall2d#dd.);}
66
67 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#`Rall2d<T, V, S>`(b062ebe16b1b9efb).(typename TIcxx . . $ KDL/TI#<T>::Arg tn,const V& afg):tcxx . . $ KDL/Rall2d#t.(tn),dcxx . . $ KDL/Rall2d#d.(afg) {SetToZerocxx . . $ KDL/SetToZero(168b351719db0629).(ddcxx . . $ KDL/Rall2d#dd.);}
68
69 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#`Rall2d<T, V, S>`(bb222f63e22b453a).(typename TIcxx . . $ KDL/TI#<T>::Arg tn,const V& afg,const V& afg2):tcxx . . $ KDL/Rall2d#t.(tn),dcxx . . $ KDL/Rall2d#d.(afg),ddcxx . . $ KDL/Rall2d#dd.(afg2) {}
70
71 // = Copy Constructor
72 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#`Rall2d<T, V, S>`(208de1f193c62257).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& r):tcxx . . $ KDL/Rall2d#t.(r.tcxx . . $ KDL/Rall2d#t.),dcxx . . $ KDL/Rall2d#d.(r.dcxx . . $ KDL/Rall2d#d.),ddcxx . . $ KDL/Rall2d#dd.(r.ddcxx . . $ KDL/Rall2d#dd.) {}
73 //if one defines this constructor, it's better optimized then the
74 //automatically generated one ( that one set's up a loop to copy
75 // word by word.
76
77 // = Member functions to access internal structures :
78 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! T& Valuecxx . . $ KDL/Rall2d#Value(19b2b6f17af048b).() {
79 return tcxx . . $ KDL/Rall2d#t.;
80 }
81
82 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! V& Dcxx . . $ KDL/Rall2d#D(bef0f7a998e0139b).() {
83 return dcxx . . $ KDL/Rall2d#d.;
84 }
85
86 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! V& DDcxx . . $ KDL/Rall2d#DD(bef0f7a998e0139b).() {
87 return ddcxx . . $ KDL/Rall2d#dd.;
88 }
89 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! static Rall2dcxx . . $ KDL/Rall2d#<T,V,S> Zerocxx . . $ KDL/Rall2d#Zero(2231232ee94d709b).() {
90 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
91 SetToZerocxx . . $ KDL/SetToZero(9f1423c7ef701636).(tmp);
92 return tmp;
93 }
94 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! static Rall2dcxx . . $ KDL/Rall2d#<T,V,S> Identitycxx . . $ KDL/Rall2d#Identity(2231232ee94d709b).() {
95 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
96 SetToIdentitycxx . . $ KDL/SetToIdentity(168b351719db0629).(tmp);
97 return tmp;
98 }
99
100 // = assignment operators
101 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& operatorcxx . . $ KDL/Rall2d#`operator=`(3f191e386bbd8fd2). =(S c)
102 {tcxx . . $ KDL/Rall2d#t.=c;SetToZerocxx . . $ KDL/SetToZero(9296dfedd09a915d).(dcxx . . $ KDL/Rall2d#d.);SetToZerocxx . . $ KDL/SetToZero(fa22aefff6cb375c).(ddcxx . . $ KDL/Rall2d#dd.);return *this;}
103
104 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& operatorcxx . . $ KDL/Rall2d#`operator=`(bedfb22acf132284). =(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& r)
105 {tcxx . . $ KDL/Rall2d#t.=r.tcxx . . $ KDL/Rall2d#t.;dcxx . . $ KDL/Rall2d#d.=r.dcxx . . $ KDL/Rall2d#d.;ddcxx . . $ KDL/Rall2d#dd.=r.ddcxx . . $ KDL/Rall2d#dd.;return *this;}
106
107 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& operatorcxx . . $ KDL/Rall2d#`operator/=`(bedfb22acf132284). /=(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& rhs)
108 {
109 tcxx . . $ KDL/Rall2d#t. /= rhs.tcxx . . $ KDL/Rall2d#t.;
110 dcxx . . $ KDL/Rall2d#d. = (dcxx . . $ KDL/Rall2d#d.-cxx . . $ KDL/operator-(35b25f996bca6215).tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(8341d013d566b035).rhs.dcxx . . $ KDL/Rall2d#d.)/cxx . . $ KDL/`operator/`(f36a80f2ac98a974).rhs.tcxx . . $ KDL/Rall2d#t.;
111 ddcxx . . $ KDL/Rall2d#dd.= (ddcxx . . $ KDL/Rall2d#dd. -cxx . . $ KDL/operator-(35b25f996bca6215). S(2)*cxx . . $ KDL/`operator*`(f785f05aae941a47).dcxx . . $ KDL/Rall2d#d.*cxx . . $ KDL/`operator*`(f785f05aae941a47).rhs.dcxx . . $ KDL/Rall2d#d.-cxx . . $ KDL/operator-(fb2de2cf2fab1210).tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(61f71ca69aa700be).rhs.ddcxx . . $ KDL/Rall2d#dd.)/cxx . . $ KDL/`operator/`(dfd1ead5a5df9c33).rhs.tcxx . . $ KDL/Rall2d#t.;
112 return *this;
113 }
114
115 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& operatorcxx . . $ KDL/Rall2d#`operator*=`(bedfb22acf132284). *=(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& rhs)
116 {
117 tcxx . . $ KDL/Rall2d#t. *= rhs.tcxx . . $ KDL/Rall2d#t.;
118 dcxx . . $ KDL/Rall2d#d. = (dcxx . . $ KDL/Rall2d#d.*cxx . . $ KDL/`operator*`(65ba82bc79a7362f).rhs.tcxx . . $ KDL/Rall2d#t.+cxx . . $ KDL/operator+(c98bab19305b5333).tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(65ba82bc79a7362f).rhs.dcxx . . $ KDL/Rall2d#d.);
119 ddcxx . . $ KDL/Rall2d#dd. = (ddcxx . . $ KDL/Rall2d#dd.*cxx . . $ KDL/`operator*`(2d757222e210b9e9).rhs.tcxx . . $ KDL/Rall2d#t.+cxx . . $ KDL/operator+(4c6be8d7b4d85c33).S(2)*cxx . . $ KDL/`operator*`(2d757222e210b9e9).dcxx . . $ KDL/Rall2d#d.*cxx . . $ KDL/`operator*`(2d757222e210b9e9).rhs.dcxx . . $ KDL/Rall2d#d.+cxx . . $ KDL/operator+(4c6be8d7b4d85c33).tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(8341d013d566b035).rhs.ddcxx . . $ KDL/Rall2d#dd.);
120 return *this;
121 }
122
123 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& operatorcxx . . $ KDL/Rall2d#`operator+=`(bedfb22acf132284). +=(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& rhs)
124 {
125 tcxx . . $ KDL/Rall2d#t. +=rhs.tcxx . . $ KDL/Rall2d#t.;
126 dcxx . . $ KDL/Rall2d#d. +=rhs.dcxx . . $ KDL/Rall2d#d.;
127 ddcxx . . $ KDL/Rall2d#dd.+=rhs.ddcxx . . $ KDL/Rall2d#dd.;
128 return *this;
129 }
130
131 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& operatorcxx . . $ KDL/Rall2d#`operator-=`(bedfb22acf132284). -=(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& rhs)
132 {
133 tcxx . . $ KDL/Rall2d#t. -= rhs.tcxx . . $ KDL/Rall2d#t.;
134 dcxx . . $ KDL/Rall2d#d. -= rhs.dcxx . . $ KDL/Rall2d#d.;
135 ddcxx . . $ KDL/Rall2d#dd. -= rhs.ddcxx . . $ KDL/Rall2d#dd.;
136 return *this;
137 }
138
139 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& operatorcxx . . $ KDL/Rall2d#`operator/=`(3f191e386bbd8fd2). /=(S rhs)
140 {
141 tcxx . . $ KDL/Rall2d#t. /= rhs;
142 dcxx . . $ KDL/Rall2d#d. /= rhs;
143 ddcxx . . $ KDL/Rall2d#dd. /= rhs;
144 return *this;
145 }
146
147 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& operatorcxx . . $ KDL/Rall2d#`operator*=`(3f191e386bbd8fd2). *=(S rhs)
148 {
149 tcxx . . $ KDL/Rall2d#t. *= rhs;
150 dcxx . . $ KDL/Rall2d#d. *= rhs;
151 ddcxx . . $ KDL/Rall2d#dd. *= rhs;
152 return *this;
153 }
154
155 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& operatorcxx . . $ KDL/Rall2d#`operator-=`(3f191e386bbd8fd2). -=(S rhs)
156 {
157 tcxx . . $ KDL/Rall2d#t. -= rhs;
158 return *this;
159 }
160
161 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& operatorcxx . . $ KDL/Rall2d#`operator+=`(3f191e386bbd8fd2). +=(S rhs)
162 {
163 tcxx . . $ KDL/Rall2d#t. += rhs;
164 return *this;
165 }
166
167 // = Operators between Rall2d objects
168 /*
169 friend INLINE Rall2d<T,V,S> operator /(const Rall2d<T,V,S>& lhs,const Rall2d<T,V,S>& rhs);
170 friend INLINE Rall2d<T,V,S> operator *(const Rall2d<T,V,S>& lhs,const Rall2d<T,V,S>& rhs);
171 friend INLINE Rall2d<T,V,S> operator +(const Rall2d<T,V,S>& lhs,const Rall2d<T,V,S>& rhs);
172 friend INLINE Rall2d<T,V,S> operator -(const Rall2d<T,V,S>& lhs,const Rall2d<T,V,S>& rhs);
173 friend INLINE Rall2d<T,V,S> operator -(const Rall2d<T,V,S>& arg);
174 friend INLINE Rall2d<T,V,S> operator *(S s,const Rall2d<T,V,S>& v);
175 friend INLINE Rall2d<T,V,S> operator *(const Rall2d<T,V,S>& v,S s);
176 friend INLINE Rall2d<T,V,S> operator +(S s,const Rall2d<T,V,S>& v);
177 friend INLINE Rall2d<T,V,S> operator +(const Rall2d<T,V,S>& v,S s);
178 friend INLINE Rall2d<T,V,S> operator -(S s,const Rall2d<T,V,S>& v);
179 friend INLINE INLINE Rall2d<T,V,S> operator -(const Rall2d<T,V,S>& v,S s);
180 friend INLINE Rall2d<T,V,S> operator /(S s,const Rall2d<T,V,S>& v);
181 friend INLINE Rall2d<T,V,S> operator /(const Rall2d<T,V,S>& v,S s);
182
183 // = Mathematical functions that operate on Rall2d objects
184
185 friend INLINE Rall2d<T,V,S> exp(const Rall2d<T,V,S>& arg);
186 friend INLINE Rall2d<T,V,S> log(const Rall2d<T,V,S>& arg);
187 friend INLINE Rall2d<T,V,S> sin(const Rall2d<T,V,S>& arg);
188 friend INLINE Rall2d<T,V,S> cos(const Rall2d<T,V,S>& arg);
189 friend INLINE Rall2d<T,V,S> tan(const Rall2d<T,V,S>& arg);
190 friend INLINE Rall2d<T,V,S> sinh(const Rall2d<T,V,S>& arg);
191 friend INLINE Rall2d<T,V,S> cosh(const Rall2d<T,V,S>& arg);
192 friend INLINE Rall2d<T,V,S> tanh(const Rall2d<T,V,S>& arg);
193 friend INLINE Rall2d<T,V,S> sqr(const Rall2d<T,V,S>& arg);
194 friend INLINE Rall2d<T,V,S> pow(const Rall2d<T,V,S>& arg,double m) ;
195 friend INLINE Rall2d<T,V,S> sqrt(const Rall2d<T,V,S>& arg);
196 friend INLINE Rall2d<T,V,S> asin(const Rall2d<T,V,S>& arg);
197 friend INLINE Rall2d<T,V,S> acos(const Rall2d<T,V,S>& arg);
198 friend INLINE Rall2d<T,V,S> atan(const Rall2d<T,V,S>& x);
199 friend INLINE Rall2d<T,V,S> atan2(const Rall2d<T,V,S>& y,const Rall2d<T,V,S>& x);
200 friend INLINE Rall2d<T,V,S> abs(const Rall2d<T,V,S>& x);
201 friend INLINE Rall2d<T,V,S> hypot(const Rall2d<T,V,S>& y,const Rall2d<T,V,S>& x);
202 // returns sqrt(y*y+x*x), but is optimized for accuracy and speed.
203 friend INLINE S Norm(const Rall2d<T,V,S>& value) ;
204 // returns Norm( value.Value() ).
205
206 // = Some utility functions to improve performance
207 // (should also be declared on primitive types to improve uniformity
208 friend INLINE Rall2d<T,V,S> LinComb(S alfa,const Rall2d<T,V,S>& a,
209 TI<T>::Arg beta,const Rall2d<T,V,S>& b );
210 friend INLINE void LinCombR(S alfa,const Rall2d<T,V,S>& a,
211 TI<T>::Arg beta,const Rall2d<T,V,S>& b,Rall2d<T,V,S>& result );
212 // = Setting value of a Rall2d object to 0 or 1
213 friend INLINE void SetToZero(Rall2d<T,V,S>& value);
214 friend INLINE void SetToOne(Rall2d<T,V,S>& value);
215 // = Equality in an eps-interval
216 friend INLINE bool Equal(const Rall2d<T,V,S>& y,const Rall2d<T,V,S>& x,double eps);
217 */
218 };
219
220
221
222
223
224 // = Operators between Rall2d objects
225 template <class T,class V,class S>
226 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/`operator/`(e7db67d7dfcc13ac). /(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& lhs,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& rhs)
227 {
228 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
229 tmp.tcxx . . $ KDL/Rall2d#t. = lhs.tcxx . . $ KDL/Rall2d#t./cxx . . $ KDL/`operator/`(7681a5f472fe18a).rhs.tcxx . . $ KDL/Rall2d#t.;
230 tmp.dcxx . . $ KDL/Rall2d#d. = (lhs.dcxx . . $ KDL/Rall2d#d.-cxx . . $ KDL/operator-(a482697fe6da4856).tmp.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(80fb495a3f675de6).rhs.dcxx . . $ KDL/Rall2d#d.)/cxx . . $ KDL/`operator/`(7681a5f472fe18a).rhs.tcxx . . $ KDL/Rall2d#t.;
231 tmp.ddcxx . . $ KDL/Rall2d#dd.= (lhs.ddcxx . . $ KDL/Rall2d#dd.-cxx . . $ KDL/operator-(a482697fe6da4856).S(2)*cxx . . $ KDL/`operator*`(6cdf849d4d2be3c4).tmp.dcxx . . $ KDL/Rall2d#d.*cxx . . $ KDL/`operator*`(dfd1ead5a5df9c33).rhs.dcxx . . $ KDL/Rall2d#d.-cxx . . $ KDL/operator-(39e6e3cf71bf354f).tmp.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(8de6dbeee5ee8181).rhs.ddcxx . . $ KDL/Rall2d#dd.)/cxx . . $ KDL/`operator/`(e7db67d7dfcc13ac).rhs.tcxx . . $ KDL/Rall2d#t.;
232 return tmp;
233 }
234
235 template <class T,class V,class S>
236 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/`operator*`(e7db67d7dfcc13ac). *(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& lhs,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& rhs)
237 {
238 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
239 tmp.tcxx . . $ KDL/Rall2d#t. = lhs.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(2d757222e210b9e9).rhs.tcxx . . $ KDL/Rall2d#t.;
240 tmp.dcxx . . $ KDL/Rall2d#d. = (lhs.dcxx . . $ KDL/Rall2d#d.*cxx . . $ KDL/`operator*`(2d757222e210b9e9).rhs.tcxx . . $ KDL/Rall2d#t.+cxx . . $ KDL/operator+(29844cb63be80192).lhs.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(8341d013d566b035).rhs.dcxx . . $ KDL/Rall2d#d.);
241 tmp.ddcxx . . $ KDL/Rall2d#dd. = (lhs.ddcxx . . $ KDL/Rall2d#dd.*cxx . . $ KDL/`operator*`(e7db67d7dfcc13ac).rhs.tcxx . . $ KDL/Rall2d#t.+cxx . . $ KDL/operator+(c98bab19305b5333).S(2)*cxx . . $ KDL/`operator*`(8341d013d566b035).lhs.dcxx . . $ KDL/Rall2d#d.*cxx . . $ KDL/`operator*`(4a194f6ea697c493).rhs.dcxx . . $ KDL/Rall2d#d.+cxx . . $ KDL/operator+(a482697fe6da4856).lhs.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(61f71ca69aa700be).rhs.ddcxx . . $ KDL/Rall2d#dd.);
242 return tmp;
243 }
244
245 template <class T,class V,class S>
246 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/operator+(e7db67d7dfcc13ac). +(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& lhs,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& rhs)
247 {
248 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(lhs.tcxx . . $ KDL/Rall2d#t.+cxx . . $ KDL/operator+(65ba82bc79a7362f).rhs.tcxx . . $ KDL/Rall2d#t.,lhs.dcxx . . $ KDL/Rall2d#d.+cxx . . $ KDL/operator+(e7db67d7dfcc13ac).rhs.dcxx . . $ KDL/Rall2d#d.,lhs.ddcxx . . $ KDL/Rall2d#dd.+cxx . . $ KDL/operator+(4a194f6ea697c493).rhs.ddcxx . . $ KDL/Rall2d#dd.);
249 }
250
251 template <class T,class V,class S>
252 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/operator-(e7db67d7dfcc13ac). -(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& lhs,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& rhs)
253 {
254 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(lhs.tcxx . . $ KDL/Rall2d#t.-cxx . . $ KDL/operator-(313b69589b28b96e).rhs.tcxx . . $ KDL/Rall2d#t.,lhs.dcxx . . $ KDL/Rall2d#d.-cxx . . $ KDL/operator-(8a7ca322cfcc96d7).rhs.dcxx . . $ KDL/Rall2d#d.,lhs.ddcxx . . $ KDL/Rall2d#dd.-cxx . . $ KDL/operator-(3083e77f74bc8f73).rhs.ddcxx . . $ KDL/Rall2d#dd.);
255 }
256
257 template <class T,class V,class S>
258 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/operator-(bd729e930b381a65). -(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
259 {
260 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(-cxx . . $ KDL/operator-(4a194f6ea697c493).arg.tcxx . . $ KDL/Rall2d#t.,-cxx . . $ KDL/operator-(2dd4db2eb67ef09c).arg.dcxx . . $ KDL/Rall2d#d.,-cxx . . $ KDL/operator-(f36a80f2ac98a974).arg.ddcxx . . $ KDL/Rall2d#dd.);
261 }
262
263 template <class T,class V,class S>
264 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/`operator*`(b6903a1d619461b8). *(S s,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& v)
265 {
266 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(s*cxx . . $ KDL/`operator*`(d0b39e97e6ee1c99).v.tcxx . . $ KDL/Rall2d#t.,s*cxx . . $ KDL/`operator*`(f785f05aae941a47).v.dcxx . . $ KDL/Rall2d#d.,s*cxx . . $ KDL/`operator*`(8de6dbeee5ee8181).v.ddcxx . . $ KDL/Rall2d#dd.);
267 }
268
269 template <class T,class V,class S>
270 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/`operator*`(bbadd8a2f46eee3). *(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& v,S s)
271 {
272 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(v.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(bbadd8a2f46eee3).s,v.dcxx . . $ KDL/Rall2d#d.*cxx . . $ KDL/`operator*`(d0b39e97e6ee1c99).s,v.ddcxx . . $ KDL/Rall2d#dd.*cxx . . $ KDL/`operator*`(2d757222e210b9e9).s);
273 }
274
275 template <class T,class V,class S>
276 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/operator+(b6903a1d619461b8). +(S s,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& v)
277 {
278 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(s+cxx . . $ KDL/operator+(4a194f6ea697c493).v.tcxx . . $ KDL/Rall2d#t.,v.dcxx . . $ KDL/Rall2d#d.,v.ddcxx . . $ KDL/Rall2d#dd.);
279 }
280
281 template <class T,class V,class S>
282 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/operator+(bbadd8a2f46eee3). +(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& v,S s)
283 {
284 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(v.tcxx . . $ KDL/Rall2d#t.+cxx . . $ KDL/operator+(65ba82bc79a7362f).s,v.dcxx . . $ KDL/Rall2d#d.,v.ddcxx . . $ KDL/Rall2d#dd.);
285 }
286
287 template <class T,class V,class S>
288 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/operator-(b6903a1d619461b8). -(S s,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& v)
289 {
290 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(s-cxx . . $ KDL/operator-(f36a80f2ac98a974).v.tcxx . . $ KDL/Rall2d#t.,-cxx . . $ KDL/operator-(3083e77f74bc8f73).v.dcxx . . $ KDL/Rall2d#d.,-cxx . . $ KDL/operator-(3083e77f74bc8f73).v.ddcxx . . $ KDL/Rall2d#dd.);
291 }
292
293 template <class T,class V,class S>
294 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/operator-(bbadd8a2f46eee3). -(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& v,S s)
295 {
296 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(v.tcxx . . $ KDL/Rall2d#t.-cxx . . $ KDL/operator-(fb2de2cf2fab1210).s,v.dcxx . . $ KDL/Rall2d#d.,v.ddcxx . . $ KDL/Rall2d#dd.);
297 }
298
299 template <class T,class V,class S>
300 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/`operator/`(b6903a1d619461b8). /(S s,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& rhs)
301 {
302 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
303 tmp.tcxx . . $ KDL/Rall2d#t. = s/cxx . . $ KDL/`operator/`(61f71ca69aa700be).rhs.tcxx . . $ KDL/Rall2d#t.;
304 tmp.dcxx . . $ KDL/Rall2d#d. = (-cxx . . $ KDL/operator-(4a194f6ea697c493).tmp.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(dfd1ead5a5df9c33).rhs.dcxx . . $ KDL/Rall2d#d.)/cxx . . $ KDL/`operator/`(e7db67d7dfcc13ac).rhs.tcxx . . $ KDL/Rall2d#t.;
305 tmp.ddcxx . . $ KDL/Rall2d#dd.= (-cxx . . $ KDL/operator-(fb2de2cf2fab1210).S(2)*cxx . . $ KDL/`operator*`(80fb495a3f675de6).tmp.dcxx . . $ KDL/Rall2d#d.*cxx . . $ KDL/`operator*`(b6903a1d619461b8).rhs.dcxx . . $ KDL/Rall2d#d.-cxx . . $ KDL/operator-(a482697fe6da4856).tmp.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(61f71ca69aa700be).rhs.ddcxx . . $ KDL/Rall2d#dd.)/cxx . . $ KDL/`operator/`(a482697fe6da4856).rhs.tcxx . . $ KDL/Rall2d#t.;
306 return tmp;
307 }
308
309
310 template <class T,class V,class S>
311 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> operatorcxx . . $ KDL/`operator/`(bbadd8a2f46eee3). /(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& v,S s)
312 {
313 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(v.tcxx . . $ KDL/Rall2d#t./cxx . . $ KDL/`operator/`(61f71ca69aa700be).s,v.dcxx . . $ KDL/Rall2d#d./cxx . . $ KDL/`operator/`(7681a5f472fe18a).s,v.ddcxx . . $ KDL/Rall2d#dd./cxx . . $ KDL/`operator/`(dfd1ead5a5df9c33).s);
314 }
315
316
317 template <class T,class V,class S>
318 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> expcxx . . $ KDL/exp(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
319 {
320 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
321 tmp.tcxx . . $ KDL/Rall2d#t. = expcxx . . $ KDL/exp(fee4f1d22bc8e617).(arg.tcxx . . $ KDL/Rall2d#t.);
322 tmp.dcxx . . $ KDL/Rall2d#d. = tmp.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(dfd1ead5a5df9c33).arg.dcxx . . $ KDL/Rall2d#d.;
323 tmp.ddcxx . . $ KDL/Rall2d#dd. = tmp.dcxx . . $ KDL/Rall2d#d.*cxx . . $ KDL/`operator*`(80fb495a3f675de6).arg.dcxx . . $ KDL/Rall2d#d.+cxx . . $ KDL/operator+(29844cb63be80192).tmp.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(8341d013d566b035).arg.ddcxx . . $ KDL/Rall2d#dd.;
324 return tmp;
325 }
326
327 template <class T,class V,class S>
328 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> logcxx . . $ KDL/log(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
329 {
330 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
331 tmp.tcxx . . $ KDL/Rall2d#t. = logcxx . . $ KDL/log(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall2d#t.);
332 tmp.dcxx . . $ KDL/Rall2d#d. = arg.dcxx . . $ KDL/Rall2d#d./cxx . . $ KDL/`operator/`(61f71ca69aa700be).arg.tcxx . . $ KDL/Rall2d#t.;
333 tmp.ddcxx . . $ KDL/Rall2d#dd. = (arg.ddcxx . . $ KDL/Rall2d#dd.-cxx . . $ KDL/operator-(f36a80f2ac98a974).tmp.dcxx . . $ KDL/Rall2d#d.*cxx . . $ KDL/`operator*`(dce5cb2f8aec8611).arg.dcxx . . $ KDL/Rall2d#d.)/cxx . . $ KDL/`operator/`(c9aad55697d85393).arg.tcxx . . $ KDL/Rall2d#t.;
334 return tmp;
335 }
336
337 template <class T,class V,class S>
338 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> sincxx . . $ KDL/sin(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
339 {
340 T v1 = sincxx . . $ KDL/sin(cd6880bb7604d12e).(arg.tcxx . . $ KDL/Rall2d#t.);
341 T v2 = coscxx . . $ KDL/cos(fbcf3211dfe1bfd1).(arg.tcxx . . $ KDL/Rall2d#t.);
342 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(v1,v2*cxx . . $ KDL/`operator*`(e7db67d7dfcc13ac).arg.dcxx . . $ KDL/Rall2d#d.,v2*cxx . . $ KDL/`operator*`(b6903a1d619461b8).arg.ddcxx . . $ KDL/Rall2d#dd. -cxx . . $ KDL/operator-(3083e77f74bc8f73). (v1*cxx . . $ KDL/`operator*`(dfd1ead5a5df9c33).arg.dcxx . . $ KDL/Rall2d#d.)*cxx . . $ KDL/`operator*`(f785f05aae941a47).arg.dcxx . . $ KDL/Rall2d#d. );
343 }
344
345 template <class T,class V,class S>
346 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> coscxx . . $ KDL/cos(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
347 {
348 T v1 = coscxx . . $ KDL/cos(fee4f1d22bc8e617).(arg.tcxx . . $ KDL/Rall2d#t.);
349 T v2 = -cxx . . $ KDL/operator-(45cf5b7ecc800b4b).sincxx . . $ KDL/sin(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall2d#t.);
350 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(v1,v2*cxx . . $ KDL/`operator*`(dce5cb2f8aec8611).arg.dcxx . . $ KDL/Rall2d#d., v2*cxx . . $ KDL/`operator*`(8341d013d566b035).arg.ddcxx . . $ KDL/Rall2d#dd. -cxx . . $ KDL/operator-(29844cb63be80192). (v1*cxx . . $ KDL/`operator*`(65ba82bc79a7362f).arg.dcxx . . $ KDL/Rall2d#d.)*cxx . . $ KDL/`operator*`(bbadd8a2f46eee3).arg.dcxx . . $ KDL/Rall2d#d.);
351 }
352
353 template <class T,class V,class S>
354 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tancxx . . $ KDL/tan(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
355 {
356 T v1 = tancxx . . $ KDL/tan(cd6880bb7604d12e).(arg.tcxx . . $ KDL/Rall2d#t.);
357 T v2 = S(1)+cxx . . $ KDL/operator+(65ba82bc79a7362f).sqrcxx . . $ KDL/sqr(447c67c6676f75c3).(v1);
358 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(v1,v2*cxx . . $ KDL/`operator*`(e7db67d7dfcc13ac).arg.dcxx . . $ KDL/Rall2d#d., v2*cxx . . $ KDL/`operator*`(dce5cb2f8aec8611).(arg.ddcxx . . $ KDL/Rall2d#dd.+cxx . . $ KDL/operator+(29844cb63be80192).(S(2)*cxx . . $ KDL/`operator*`(61f71ca69aa700be).v1*cxx . . $ KDL/`operator*`(2d757222e210b9e9).sqrcxx . . $ KDL/sqr(447c67c6676f75c3).(arg.dcxx . . $ KDL/Rall2d#d.))));
359 }
360
361 template <class T,class V,class S>
362 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> sinhcxx . . $ KDL/sinh(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
363 {
364 T v1 = sinhcxx . . $ KDL/sinh(bd729e930b381a65).(arg.tcxx . . $ KDL/Rall2d#t.);
365 T v2 = coshcxx . . $ KDL/cosh(fbcf3211dfe1bfd1).(arg.tcxx . . $ KDL/Rall2d#t.);
366 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(v1,v2*cxx . . $ KDL/`operator*`(8341d013d566b035).arg.dcxx . . $ KDL/Rall2d#d.,v2*cxx . . $ KDL/`operator*`(8341d013d566b035).arg.ddcxx . . $ KDL/Rall2d#dd. +cxx . . $ KDL/operator+(f36a80f2ac98a974). (v1*cxx . . $ KDL/`operator*`(65ba82bc79a7362f).arg.dcxx . . $ KDL/Rall2d#d.)*cxx . . $ KDL/`operator*`(61f71ca69aa700be).arg.dcxx . . $ KDL/Rall2d#d. );
367 }
368
369 template <class T,class V,class S>
370 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> coshcxx . . $ KDL/cosh(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
371 {
372 T v1 = coshcxx . . $ KDL/cosh(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall2d#t.);
373 T v2 = sinhcxx . . $ KDL/sinh(cd6880bb7604d12e).(arg.tcxx . . $ KDL/Rall2d#t.);
374 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(v1,v2*cxx . . $ KDL/`operator*`(2d757222e210b9e9).arg.dcxx . . $ KDL/Rall2d#d.,v2*cxx . . $ KDL/`operator*`(80fb495a3f675de6).arg.ddcxx . . $ KDL/Rall2d#dd. +cxx . . $ KDL/operator+(f36a80f2ac98a974). (v1*cxx . . $ KDL/`operator*`(80fb495a3f675de6).arg.dcxx . . $ KDL/Rall2d#d.)*cxx . . $ KDL/`operator*`(65ba82bc79a7362f).arg.dcxx . . $ KDL/Rall2d#d. );
375 }
376
377 template <class T,class V,class S>
378 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tanhcxx . . $ KDL/tanh(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
379 {
380 T v1 = tanhcxx . . $ KDL/tanh(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall2d#t.);
381 T v2 = S(1)-cxx . . $ KDL/operator-(fb2de2cf2fab1210).sqrcxx . . $ KDL/sqr(447c67c6676f75c3).(v1);
382 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(v1,v2*cxx . . $ KDL/`operator*`(dce5cb2f8aec8611).arg.dcxx . . $ KDL/Rall2d#d., v2*cxx . . $ KDL/`operator*`(80fb495a3f675de6).(arg.ddcxx . . $ KDL/Rall2d#dd.-cxx . . $ KDL/operator-(65ba82bc79a7362f).(S(2)*cxx . . $ KDL/`operator*`(61f71ca69aa700be).v1*cxx . . $ KDL/`operator*`(bbadd8a2f46eee3).sqrcxx . . $ KDL/sqr(447c67c6676f75c3).(arg.dcxx . . $ KDL/Rall2d#d.))));
383 }
384
385 template <class T,class V,class S>
386 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> sqrcxx . . $ KDL/sqr(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
387 {
388 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(arg.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(61f71ca69aa700be).arg.tcxx . . $ KDL/Rall2d#t.,
389 (S(2)*cxx . . $ KDL/`operator*`(e7db67d7dfcc13ac).arg.tcxx . . $ KDL/Rall2d#t.)*cxx . . $ KDL/`operator*`(d0b39e97e6ee1c99).arg.dcxx . . $ KDL/Rall2d#d.,
390 S(2)*cxx . . $ KDL/`operator*`(65ba82bc79a7362f).(sqrcxx . . $ KDL/sqr(39e6e3cf71bf354f).(arg.dcxx . . $ KDL/Rall2d#d.)+cxx . . $ KDL/operator+(1c247269aa8e4cae).arg.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(8de6dbeee5ee8181).arg.ddcxx . . $ KDL/Rall2d#dd.)
391 );
392 }
393
394 template <class T,class V,class S>
395 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> powcxx . . $ KDL/pow(419a15d56cb13bbc).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg,double m)
396 {
397 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
398 tmp.tcxx . . $ KDL/Rall2d#t. = powcxx . . $ KDL/pow(b71928d39fde4295).(arg.tcxx . . $ KDL/Rall2d#t.,m);
399 T v2 = (m/cxx . . $ KDL/`operator/`(c9aad55697d85393).arg.tcxx . . $ KDL/Rall2d#t.)*cxx . . $ KDL/`operator*`(b6903a1d619461b8).tmp.tcxx . . $ KDL/Rall2d#t.;
400 tmp.dcxx . . $ KDL/Rall2d#d. = v2*cxx . . $ KDL/`operator*`(88a1e6ac383343a2).arg.dcxx . . $ KDL/Rall2d#d.;
401 tmp.ddcxx . . $ KDL/Rall2d#dd. = (S((m-1))/cxx . . $ KDL/`operator/`(53f079916aec3d1c).arg.tcxx . . $ KDL/Rall2d#t.)*cxx . . $ KDL/`operator*`(d0b39e97e6ee1c99).tmp.dcxx . . $ KDL/Rall2d#d.*cxx . . $ KDL/`operator*`(dfd1ead5a5df9c33).arg.dcxx . . $ KDL/Rall2d#d. +cxx . . $ KDL/operator+(a482697fe6da4856). v2*cxx . . $ KDL/`operator*`(e7db67d7dfcc13ac).arg.ddcxx . . $ KDL/Rall2d#dd.;
402 return tmp;
403 }
404
405 template <class T,class V,class S>
406 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> sqrtcxx . . $ KDL/sqrt(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
407 {
408 /* By inversion of sqr(x) :*/
409 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
410 tmp.tcxx . . $ KDL/Rall2d#t. = sqrtcxx . . $ KDL/sqrt(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall2d#t.);
411 tmp.dcxx . . $ KDL/Rall2d#d. = (S(0.5)/cxx . . $ KDL/`operator/`(f36a80f2ac98a974).tmp.tcxx . . $ KDL/Rall2d#t.)*cxx . . $ KDL/`operator*`(2d757222e210b9e9).arg.dcxx . . $ KDL/Rall2d#d.;
412 tmp.ddcxx . . $ KDL/Rall2d#dd. = (S(0.5)*cxx . . $ KDL/`operator*`(61f71ca69aa700be).arg.ddcxx . . $ KDL/Rall2d#dd.-cxx . . $ KDL/operator-(a482697fe6da4856).sqrcxx . . $ KDL/sqr(447c67c6676f75c3).(tmp.dcxx . . $ KDL/Rall2d#d.))/cxx . . $ KDL/`operator/`(61f71ca69aa700be).tmp.tcxx . . $ KDL/Rall2d#t.;
413 return tmp;
414 }
415
416 template <class T,class V,class S>
417 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> asincxx . . $ KDL/asin(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
418 {
419 /* By inversion of sin(x) */
420 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
421 tmp.tcxx . . $ KDL/Rall2d#t. = asincxx . . $ KDL/asin(cd6880bb7604d12e).(arg.tcxx . . $ KDL/Rall2d#t.);
422 T v = coscxx . . $ KDL/cos(fbcf3211dfe1bfd1).(tmp.tcxx . . $ KDL/Rall2d#t.);
423 tmp.dcxx . . $ KDL/Rall2d#d. = arg.dcxx . . $ KDL/Rall2d#d./cxx . . $ KDL/`operator/`(dfd1ead5a5df9c33).v;
424 tmp.ddcxx . . $ KDL/Rall2d#dd. = (arg.ddcxx . . $ KDL/Rall2d#dd.+cxx . . $ KDL/operator+(313b69589b28b96e).arg.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(bbadd8a2f46eee3).sqrcxx . . $ KDL/sqr(bd729e930b381a65).(tmp.dcxx . . $ KDL/Rall2d#d.))/cxx . . $ KDL/`operator/`(bbadd8a2f46eee3).v;
425 return tmp;
426 }
427
428 template <class T,class V,class S>
429 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> acoscxx . . $ KDL/acos(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& arg)
430 {
431 /* By inversion of cos(x) */
432 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
433 tmp.tcxx . . $ KDL/Rall2d#t. = acoscxx . . $ KDL/acos(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall2d#t.);
434 T v = -cxx . . $ KDL/operator-(fb2de2cf2fab1210).sincxx . . $ KDL/sin(bd729e930b381a65).(tmp.tcxx . . $ KDL/Rall2d#t.);
435 tmp.dcxx . . $ KDL/Rall2d#d. = arg.dcxx . . $ KDL/Rall2d#d./cxx . . $ KDL/`operator/`(ed18bf64fbd20848).v;
436 tmp.ddcxx . . $ KDL/Rall2d#dd. = (arg.ddcxx . . $ KDL/Rall2d#dd.+cxx . . $ KDL/operator+(313b69589b28b96e).arg.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(8341d013d566b035).sqrcxx . . $ KDL/sqr(447c67c6676f75c3).(tmp.dcxx . . $ KDL/Rall2d#d.))/cxx . . $ KDL/`operator/`(b6903a1d619461b8).v;
437 return tmp;
438
439 }
440
441 template <class T,class V,class S>
442 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> atancxx . . $ KDL/atan(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& x)
443 {
444 /* By inversion of tan(x) */
445 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
446 tmp.tcxx . . $ KDL/Rall2d#t. = atancxx . . $ KDL/atan(bd729e930b381a65).(x.tcxx . . $ KDL/Rall2d#t.);
447 T v = S(1)+cxx . . $ KDL/operator+(c98bab19305b5333).sqrcxx . . $ KDL/sqr(bd729e930b381a65).(x.tcxx . . $ KDL/Rall2d#t.);
448 tmp.dcxx . . $ KDL/Rall2d#d. = x.dcxx . . $ KDL/Rall2d#d./cxx . . $ KDL/`operator/`(e7db67d7dfcc13ac).v;
449 tmp.ddcxx . . $ KDL/Rall2d#dd. = x.ddcxx . . $ KDL/Rall2d#dd./cxx . . $ KDL/`operator/`(c9aad55697d85393).v-cxx . . $ KDL/operator-(bd729e930b381a65).(S(2)*cxx . . $ KDL/`operator*`(4a194f6ea697c493).x.tcxx . . $ KDL/Rall2d#t.)*cxx . . $ KDL/`operator*`(80fb495a3f675de6).sqrcxx . . $ KDL/sqr(39e6e3cf71bf354f).(tmp.dcxx . . $ KDL/Rall2d#d.);
450 return tmp;
451 }
452
453 template <class T,class V,class S>
454 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> atan2cxx . . $ KDL/atan2(e7db67d7dfcc13ac).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& y,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& x)
455 {
456 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
457 tmp.tcxx . . $ KDL/Rall2d#t. = atan2cxx . . $ KDL/atan2(d59a45cd3bfd2eda).(y.tcxx . . $ KDL/Rall2d#t.,x.tcxx . . $ KDL/Rall2d#t.);
458 T v = sqrcxx . . $ KDL/sqr(447c67c6676f75c3).(y.tcxx . . $ KDL/Rall2d#t.)+cxx . . $ KDL/operator+(bd63264fabf2eb6e).sqrcxx . . $ KDL/sqr(39e6e3cf71bf354f).(x.tcxx . . $ KDL/Rall2d#t.);
459 tmp.dcxx . . $ KDL/Rall2d#d. = (x.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(2d757222e210b9e9).y.dcxx . . $ KDL/Rall2d#d.-cxx . . $ KDL/operator-(e7db67d7dfcc13ac).x.dcxx . . $ KDL/Rall2d#d.*cxx . . $ KDL/`operator*`(e7db67d7dfcc13ac).y.tcxx . . $ KDL/Rall2d#t.)/cxx . . $ KDL/`operator/`(e7db67d7dfcc13ac).v;
460 tmp.ddcxx . . $ KDL/Rall2d#dd. = ( x.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(ed18bf64fbd20848).y.ddcxx . . $ KDL/Rall2d#dd.-cxx . . $ KDL/operator-(bbadd8a2f46eee3).x.ddcxx . . $ KDL/Rall2d#dd.*cxx . . $ KDL/`operator*`(8341d013d566b035).y.tcxx . . $ KDL/Rall2d#t.-cxx . . $ KDL/operator-(39e6e3cf71bf354f).S(2)*cxx . . $ KDL/`operator*`(e7db67d7dfcc13ac).(x.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(88a1e6ac383343a2).x.dcxx . . $ KDL/Rall2d#d.+cxx . . $ KDL/operator+(c9ae4889dd07d94d).y.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(bbadd8a2f46eee3).y.dcxx . . $ KDL/Rall2d#d.)*cxx . . $ KDL/`operator*`(f785f05aae941a47).tmp.dcxx . . $ KDL/Rall2d#d. ) /cxx . . $ KDL/`operator/`(bbadd8a2f46eee3). v;
461 return tmp;
462 }
463
464 template <class T,class V,class S>
465 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> abscxx . . $ KDL/abs(bd729e930b381a65).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& x)
466 {
467 T v(Sign(x));
468 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(v*cxx . . $ KDL/`operator*`(4a194f6ea697c493).x,v*cxx . . $ KDL/`operator*`(dce5cb2f8aec8611).x.dcxx . . $ KDL/Rall2d#d.,v*cxx . . $ KDL/`operator*`(ed18bf64fbd20848).x.ddcxx . . $ KDL/Rall2d#dd.);
469 }
470
471 template <class T,class V,class S>
472 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> hypotcxx . . $ KDL/hypot(e7db67d7dfcc13ac).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& y,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& x)
473 {
474 Rall2dcxx . . $ KDL/Rall2d#<T,V,S> tmp;
475 tmp.tcxx . . $ KDL/Rall2d#t. = hypotcxx . . $ KDL/hypot(b71928d39fde4295).(y.tcxx . . $ KDL/Rall2d#t.,x.tcxx . . $ KDL/Rall2d#t.);
476 tmp.dcxx . . $ KDL/Rall2d#d. = (x.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(2d757222e210b9e9).x.dcxx . . $ KDL/Rall2d#d.+cxx . . $ KDL/operator+(f36a80f2ac98a974).y.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(e7db67d7dfcc13ac).y.dcxx . . $ KDL/Rall2d#d.)/cxx . . $ KDL/`operator/`(53f079916aec3d1c).tmp.tcxx . . $ KDL/Rall2d#t.;
477 tmp.ddcxx . . $ KDL/Rall2d#dd. = (sqrcxx . . $ KDL/sqr(bd729e930b381a65).(x.dcxx . . $ KDL/Rall2d#d.)+cxx . . $ KDL/operator+(bbadd8a2f46eee3).x.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(dfd1ead5a5df9c33).x.ddcxx . . $ KDL/Rall2d#dd.+cxx . . $ KDL/operator+(8a7ca322cfcc96d7).sqrcxx . . $ KDL/sqr(bd729e930b381a65).(y.dcxx . . $ KDL/Rall2d#d.)+cxx . . $ KDL/operator+(4c6be8d7b4d85c33).y.tcxx . . $ KDL/Rall2d#t.*cxx . . $ KDL/`operator*`(2d757222e210b9e9).y.ddcxx . . $ KDL/Rall2d#dd.-cxx . . $ KDL/operator-(e7db67d7dfcc13ac).sqrcxx . . $ KDL/sqr(bd729e930b381a65).(tmp.dcxx . . $ KDL/Rall2d#d.))/cxx . . $ KDL/`operator/`(c9aad55697d85393).tmp.tcxx . . $ KDL/Rall2d#t.;
478 return tmp;
479 }
480 // returns sqrt(y*y+x*x), but is optimized for accuracy and speed.
481
482 template <class T,class V,class S>
483 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! S Normcxx . . $ KDL/Norm(797b38b0a1b7cf0a).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& value)
484 {
485 return Normcxx . . $ KDL/Norm(797b38b0a1b7cf0a).(value.tcxx . . $ KDL/Rall2d#t.);
486 }
487 // returns Norm( value.Value() ).
488
489
490 // (should also be declared on primitive types to improve uniformity
491 template <class T,class V,class S>
492 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall2dcxx . . $ KDL/Rall2d#<T,V,S> LinCombcxx . . $ KDL/LinComb(f5e2281d1c6ad522).(S alfa,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& a,
493 const T& beta,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& b ) {
494 return Rall2dcxx . . $ KDL/Rall2d#<T,V,S>(
495 LinCombcxx . . $ KDL/LinComb(f5e2281d1c6ad522).(alfa,a.tcxx . . $ KDL/Rall2d#t.,beta,b.tcxx . . $ KDL/Rall2d#t.),
496 LinCombcxx . . $ KDL/LinComb(b2626fe2d54dda4b).(alfa,a.dcxx . . $ KDL/Rall2d#d.,beta,b.dcxx . . $ KDL/Rall2d#d.),
497 LinCombcxx . . $ KDL/LinComb(f5e2281d1c6ad522).(alfa,a.ddcxx . . $ KDL/Rall2d#dd.,beta,b.ddcxx . . $ KDL/Rall2d#dd.)
498 );
499 }
500
501 template <class T,class V,class S>
502 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! void LinCombRcxx . . $ KDL/LinCombR(3acd0e319e70025b).(S alfa,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& a,
503 const T& beta,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& b,Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& result ) {
504 LinCombRcxx . . $ KDL/LinCombR(1b2b834133ff5ad0).(alfa, a.tcxx . . $ KDL/Rall2d#t., beta, b.tcxx . . $ KDL/Rall2d#t., result.tcxx . . $ KDL/Rall2d#t.);
505 LinCombRcxx . . $ KDL/LinCombR(1b2b834133ff5ad0).(alfa, a.dcxx . . $ KDL/Rall2d#d., beta, b.dcxx . . $ KDL/Rall2d#d., result.dcxx . . $ KDL/Rall2d#d.);
506 LinCombRcxx . . $ KDL/LinCombR(3acd0e319e70025b).(alfa, a.ddcxx . . $ KDL/Rall2d#dd., beta, b.ddcxx . . $ KDL/Rall2d#dd., result.ddcxx . . $ KDL/Rall2d#dd.);
507 }
508
509 template <class T,class V,class S>
510 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! void SetToZerocxx . . $ KDL/SetToZero(29d78f32161d3bfa).(Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& value)
511 {
512 SetToZerocxx . . $ KDL/SetToZero(29d78f32161d3bfa).(value.tcxx . . $ KDL/Rall2d#t.);
513 SetToZerocxx . . $ KDL/SetToZero(b71ab9f17ce762fc).(value.dcxx . . $ KDL/Rall2d#d.);
514 SetToZerocxx . . $ KDL/SetToZero(b71ab9f17ce762fc).(value.ddcxx . . $ KDL/Rall2d#dd.);
515 }
516
517 template <class T,class V,class S>
518 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! void SetToIdentitycxx . . $ KDL/SetToIdentity(29d78f32161d3bfa).(Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& value)
519 {
520 SetToZerocxx . . $ KDL/SetToZero(9f1423c7ef701636).(value.dcxx . . $ KDL/Rall2d#d.);
521 SetToIdentitycxx . . $ KDL/SetToIdentity(29d78f32161d3bfa).(value.tcxx . . $ KDL/Rall2d#t.);
522 SetToZerocxx . . $ KDL/SetToZero(b71ab9f17ce762fc).(value.ddcxx . . $ KDL/Rall2d#dd.);
523 }
524
525 template <class T,class V,class S>
526 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! bool Equalcxx . . $ KDL/Equal(c6d6f1eaec1554d9).(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& y,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& x,double eps=epsiloncxx . . $ KDL/epsilon.)
527 {
528 return (Equalcxx . . $ KDL/Equal(42a7984af7681c67).(x.tcxx . . $ KDL/Rall2d#t.,y.tcxx . . $ KDL/Rall2d#t.,eps)&&
529 Equalcxx . . $ KDL/Equal(baca25e755cf5a1).(x.dcxx . . $ KDL/Rall2d#d.,y.dcxx . . $ KDL/Rall2d#d.,eps)&&
530 Equalcxx . . $ KDL/Equal(53705b59a637ca81).(x.ddcxx . . $ KDL/Rall2d#dd.,y.ddcxx . . $ KDL/Rall2d#dd.,eps)
531 );
532 }
533
534 template <class T,class V,class S>
535 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! bool operatorcxx . . $ KDL/`operator==`(fef4b99e7bad96d2).==(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& y,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& x)
536 {
537 #ifdef KDL_USE_EQUALcxx . . $ `orocos_kdl/src/utilities/kdl-config.h:33:9`!
538 return Equalcxx . . $ KDL/Equal(73a2e52ec9b41df1).(y, x);
539 #else
540 return (x.t == y.t &&
541 x.d == y.d &&
542 x.dd == y.dd);
543 #endif
544
545 }
546
547 template <class T,class V,class S>
548 INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! bool operatorcxx . . $ KDL/`operator!=`(fef4b99e7bad96d2).!=(const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& y,const Rall2dcxx . . $ KDL/Rall2d#<T,V,S>& x)
549 {
550 return !operatorcxx . . $ KDL/`operator==`(fce8b527e317b863).==(y, x);
551 }
552
553 }
554
555
556 #endif