| 1 | |
| 2 | /***************************************************************************** |
| 3 | * \file |
| 4 | * class for automatic differentiation on scalar values and 1st |
| 5 | * derivatives . |
| 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: rall1d.h,v 1.1.1.1 2002/08/26 14:14:21 rmoreas Exp $ |
| 23 | * $Name: $ |
| 24 | ****************************************************************************/ |
| 25 | |
| 26 | #ifndef Rall1D_H |
| 27 | #define Rall1D_Hcxx . . $ `orocos_kdl/src/utilities/rall1d.h:27:9`! |
| 28 | #include <assert.h> |
| 29 | #include "utility.h"cxx . . $ `<file>/orocos_kdl/src/utilities/utility.h`/ |
| 30 | |
| 31 | namespace KDLcxx . . $ KDL/ { |
| 32 | /** |
| 33 | * Rall1d contains a value, and its gradient, and defines an algebraic structure on this pair. |
| 34 | * This template class has 3 template parameters : |
| 35 | * - T contains the type of the value. |
| 36 | * - V contains the type of the gradient (can be a vector-like type). |
| 37 | * - S defines a scalar type that can operate on Rall1d. This is the type that |
| 38 | * is used to give back values of Norm() etc. |
| 39 | * |
| 40 | * S is useful when you recurse a Rall1d object into itself to create a 2nd, 3rd, 4th,.. |
| 41 | * derivatives. (e.g. Rall1d< Rall1d<double>, Rall1d<double>, double> ). |
| 42 | * |
| 43 | * S is always passed by value. |
| 44 | * |
| 45 | * \par Class Type |
| 46 | * Concrete implementation |
| 47 | */ |
| 48 | template <typename T,typename V=T,typename S=T> |
| 49 | class Rall1dcxx . . $ KDL/Rall1d# |
| 50 | { |
| 51 | public: |
| 52 | typedef T valuetypecxx . . $ KDL/Rall1d#valuetype#; |
| 53 | typedef V gradienttypecxx . . $ KDL/Rall1d#gradienttype#; |
| 54 | typedef S scalartypecxx . . $ KDL/Rall1d#scalartype#; |
| 55 | public : |
| 56 | T tcxx . . $ KDL/Rall1d#t.; //!< value |
| 57 | V gradcxx . . $ KDL/Rall1d#grad.; //!< gradient |
| 58 | public : |
| 59 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#`Rall1d<T, V, S>`(49f6e7a06ebc5aa8).():tcxx . . $ KDL/Rall1d#t.(),gradcxx . . $ KDL/Rall1d#grad.() {}; |
| 60 | |
| 61 | T valuecxx . . $ KDL/Rall1d#value(8f5363d873dd4781).() const { |
| 62 | return tcxx . . $ KDL/Rall1d#t.; |
| 63 | } |
| 64 | V derivcxx . . $ KDL/Rall1d#deriv(7b7646ca7c721626).() const { |
| 65 | return gradcxx . . $ KDL/Rall1d#grad.; |
| 66 | } |
| 67 | |
| 68 | explicit INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#`Rall1d<T, V, S>`(29f8ab7de4db1db8).(typename TIcxx . . $ KDL/TI#<T>::Arg c) |
| 69 | {tcxx . . $ KDL/Rall1d#t.=T(c);SetToZerocxx . . $ KDL/SetToZero(fa22aefff6cb375c).(gradcxx . . $ KDL/Rall1d#grad.);} |
| 70 | |
| 71 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#`Rall1d<T, V, S>`(5c3bbb7f4f822d8a).(typename TIcxx . . $ KDL/TI#<T>::Arg tn, typename TIcxx . . $ KDL/TI#<V>::Arg afg):tcxx . . $ KDL/Rall1d#t.(tn),gradcxx . . $ KDL/Rall1d#grad.(afg) {} |
| 72 | |
| 73 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#`Rall1d<T, V, S>`(f4f1ccc2efa980e8).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& r):tcxx . . $ KDL/Rall1d#t.(r.tcxx . . $ KDL/Rall1d#t.),gradcxx . . $ KDL/Rall1d#grad.(r.gradcxx . . $ KDL/Rall1d#grad.) {} |
| 74 | //if one defines this constructor, it's better optimized then the |
| 75 | //automatically generated one ( this one set's up a loop to copy |
| 76 | // word by word. |
| 77 | |
| 78 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! T& Valuecxx . . $ KDL/Rall1d#Value(19b2b6f17af048b).() { |
| 79 | return tcxx . . $ KDL/Rall1d#t.; |
| 80 | } |
| 81 | |
| 82 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! V& Gradientcxx . . $ KDL/Rall1d#Gradient(bef0f7a998e0139b).() { |
| 83 | return gradcxx . . $ KDL/Rall1d#grad.; |
| 84 | } |
| 85 | |
| 86 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! static Rall1dcxx . . $ KDL/Rall1d#<T,V,S> Zerocxx . . $ KDL/Rall1d#Zero(1471156ebbf69917).() { |
| 87 | Rall1dcxx . . $ KDL/Rall1d#<T,V,S> tmp; |
| 88 | SetToZerocxx . . $ KDL/SetToZero(fa22aefff6cb375c).(tmp); |
| 89 | return tmp; |
| 90 | } |
| 91 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! static Rall1dcxx . . $ KDL/Rall1d#<T,V,S> Identitycxx . . $ KDL/Rall1d#Identity(1471156ebbf69917).() { |
| 92 | Rall1dcxx . . $ KDL/Rall1d#<T,V,S> tmp; |
| 93 | SetToIdentitycxx . . $ KDL/SetToIdentity(fa22aefff6cb375c).(tmp); |
| 94 | return tmp; |
| 95 | } |
| 96 | |
| 97 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& operatorcxx . . $ KDL/Rall1d#`operator=`(c98f4c6b752367f4). =(S c) |
| 98 | {tcxx . . $ KDL/Rall1d#t.=c;SetToZerocxx . . $ KDL/SetToZero(fa22aefff6cb375c).(gradcxx . . $ KDL/Rall1d#grad.);return *this;} |
| 99 | |
| 100 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& operatorcxx . . $ KDL/Rall1d#`operator=`(65f5be1271db8435). =(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& r) |
| 101 | {tcxx . . $ KDL/Rall1d#t.=r.tcxx . . $ KDL/Rall1d#t.;gradcxx . . $ KDL/Rall1d#grad.=r.gradcxx . . $ KDL/Rall1d#grad.;return *this;} |
| 102 | |
| 103 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& operatorcxx . . $ KDL/Rall1d#`operator/=`(65f5be1271db8435). /=(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& rhs) |
| 104 | { |
| 105 | gradcxx . . $ KDL/Rall1d#grad. = LinCombcxx . . $ KDL/LinComb(6ba6c9f826937c6e).(rhs.tcxx . . $ KDL/Rall1d#t.,gradcxx . . $ KDL/Rall1d#grad.,-tcxx . . $ KDL/Rall1d#t.,rhs.gradcxx . . $ KDL/Rall1d#grad.) / (rhs.tcxx . . $ KDL/Rall1d#t.*rhs.tcxx . . $ KDL/Rall1d#t.); |
| 106 | tcxx . . $ KDL/Rall1d#t. /= rhs.tcxx . . $ KDL/Rall1d#t.; |
| 107 | return *this; |
| 108 | } |
| 109 | |
| 110 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& operatorcxx . . $ KDL/Rall1d#`operator*=`(65f5be1271db8435). *=(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& rhs) |
| 111 | { |
| 112 | LinCombRcxx . . $ KDL/LinCombR(11fa212e0f3a0b7a).(rhs.tcxx . . $ KDL/Rall1d#t.,gradcxx . . $ KDL/Rall1d#grad.,tcxx . . $ KDL/Rall1d#t.,rhs.gradcxx . . $ KDL/Rall1d#grad.,gradcxx . . $ KDL/Rall1d#grad.); |
| 113 | tcxx . . $ KDL/Rall1d#t. *= rhs.tcxx . . $ KDL/Rall1d#t.; |
| 114 | return *this; |
| 115 | } |
| 116 | |
| 117 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& operatorcxx . . $ KDL/Rall1d#`operator+=`(65f5be1271db8435). +=(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& rhs) |
| 118 | { |
| 119 | gradcxx . . $ KDL/Rall1d#grad. +=rhs.gradcxx . . $ KDL/Rall1d#grad.; |
| 120 | tcxx . . $ KDL/Rall1d#t. +=rhs.tcxx . . $ KDL/Rall1d#t.; |
| 121 | return *this; |
| 122 | } |
| 123 | |
| 124 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& operatorcxx . . $ KDL/Rall1d#`operator-=`(65f5be1271db8435). -=(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& rhs) |
| 125 | { |
| 126 | gradcxx . . $ KDL/Rall1d#grad. -= rhs.gradcxx . . $ KDL/Rall1d#grad.; |
| 127 | tcxx . . $ KDL/Rall1d#t. -= rhs.tcxx . . $ KDL/Rall1d#t.; |
| 128 | return *this; |
| 129 | } |
| 130 | |
| 131 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& operatorcxx . . $ KDL/Rall1d#`operator/=`(c98f4c6b752367f4). /=(S rhs) |
| 132 | { |
| 133 | gradcxx . . $ KDL/Rall1d#grad. /= rhs; |
| 134 | tcxx . . $ KDL/Rall1d#t. /= rhs; |
| 135 | return *this; |
| 136 | } |
| 137 | |
| 138 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& operatorcxx . . $ KDL/Rall1d#`operator*=`(c98f4c6b752367f4). *=(S rhs) |
| 139 | { |
| 140 | gradcxx . . $ KDL/Rall1d#grad. *= rhs; |
| 141 | tcxx . . $ KDL/Rall1d#t. *= rhs; |
| 142 | return *this; |
| 143 | } |
| 144 | |
| 145 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& operatorcxx . . $ KDL/Rall1d#`operator+=`(c98f4c6b752367f4). +=(S rhs) |
| 146 | { |
| 147 | tcxx . . $ KDL/Rall1d#t. += rhs; |
| 148 | return *this; |
| 149 | } |
| 150 | |
| 151 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& operatorcxx . . $ KDL/Rall1d#`operator-=`(c98f4c6b752367f4). -=(S rhs) |
| 152 | { |
| 153 | tcxx . . $ KDL/Rall1d#t. -= rhs; |
| 154 | return *this; |
| 155 | } |
| 156 | |
| 157 | |
| 158 | |
| 159 | // = operators |
| 160 | /* gives warnings on cygwin |
| 161 | |
| 162 | template <class T2,class V2,class S2> |
| 163 | friend INLINE Rall1d<T2,V2,S2> operator /(const Rall1d<T2,V2,S2>& lhs,const Rall1d<T2,V2,S2>& rhs); |
| 164 | |
| 165 | friend INLINE Rall1d<T,V,S> operator *(const Rall1d<T,V,S>& lhs,const Rall1d<T,V,S>& rhs); |
| 166 | friend INLINE Rall1d<T,V,S> operator +(const Rall1d<T,V,S>& lhs,const Rall1d<T,V,S>& rhs); |
| 167 | friend INLINE Rall1d<T,V,S> operator -(const Rall1d<T,V,S>& lhs,const Rall1d<T,V,S>& rhs); |
| 168 | friend INLINE Rall1d<T,V,S> operator -(const Rall1d<T,V,S>& arg); |
| 169 | friend INLINE Rall1d<T,V,S> operator *(S s,const Rall1d<T,V,S>& v); |
| 170 | friend INLINE Rall1d<T,V,S> operator *(const Rall1d<T,V,S>& v,S s); |
| 171 | friend INLINE Rall1d<T,V,S> operator +(S s,const Rall1d<T,V,S>& v); |
| 172 | friend INLINE Rall1d<T,V,S> operator +(const Rall1d<T,V,S>& v,S s); |
| 173 | friend INLINE Rall1d<T,V,S> operator -(S s,const Rall1d<T,V,S>& v); |
| 174 | friend INLINE Rall1d<T,V,S> operator -(const Rall1d<T,V,S>& v,S s); |
| 175 | friend INLINE Rall1d<T,V,S> operator /(S s,const Rall1d<T,V,S>& v); |
| 176 | friend INLINE Rall1d<T,V,S> operator /(const Rall1d<T,V,S>& v,S s); |
| 177 | |
| 178 | // = Mathematical functions that operate on Rall1d objects |
| 179 | friend INLINE Rall1d<T,V,S> exp(const Rall1d<T,V,S>& arg); |
| 180 | friend INLINE Rall1d<T,V,S> log(const Rall1d<T,V,S>& arg); |
| 181 | friend INLINE Rall1d<T,V,S> sin(const Rall1d<T,V,S>& arg); |
| 182 | friend INLINE Rall1d<T,V,S> cos(const Rall1d<T,V,S>& arg); |
| 183 | friend INLINE Rall1d<T,V,S> tan(const Rall1d<T,V,S>& arg); |
| 184 | friend INLINE Rall1d<T,V,S> sinh(const Rall1d<T,V,S>& arg); |
| 185 | friend INLINE Rall1d<T,V,S> cosh(const Rall1d<T,V,S>& arg); |
| 186 | friend INLINE Rall1d<T,V,S> sqr(const Rall1d<T,V,S>& arg); |
| 187 | friend INLINE Rall1d<T,V,S> pow(const Rall1d<T,V,S>& arg,double m) ; |
| 188 | friend INLINE Rall1d<T,V,S> sqrt(const Rall1d<T,V,S>& arg); |
| 189 | friend INLINE Rall1d<T,V,S> atan(const Rall1d<T,V,S>& x); |
| 190 | friend INLINE Rall1d<T,V,S> hypot(const Rall1d<T,V,S>& y,const Rall1d<T,V,S>& x); |
| 191 | friend INLINE Rall1d<T,V,S> asin(const Rall1d<T,V,S>& x); |
| 192 | friend INLINE Rall1d<T,V,S> acos(const Rall1d<T,V,S>& x); |
| 193 | friend INLINE Rall1d<T,V,S> abs(const Rall1d<T,V,S>& x); |
| 194 | friend INLINE S Norm(const Rall1d<T,V,S>& value) ; |
| 195 | friend INLINE Rall1d<T,V,S> tanh(const Rall1d<T,V,S>& arg); |
| 196 | friend INLINE Rall1d<T,V,S> atan2(const Rall1d<T,V,S>& y,const Rall1d<T,V,S>& x); |
| 197 | |
| 198 | // = Utility functions to improve performance |
| 199 | |
| 200 | friend INLINE Rall1d<T,V,S> LinComb(S alfa,const Rall1d<T,V,S>& a, |
| 201 | const T& beta,const Rall1d<T,V,S>& b ); |
| 202 | |
| 203 | friend INLINE void LinCombR(S alfa,const Rall1d<T,V,S>& a, |
| 204 | const T& beta,const Rall1d<T,V,S>& b,Rall1d<T,V,S>& result ); |
| 205 | |
| 206 | // = Setting value of a Rall1d object to 0 or 1 |
| 207 | |
| 208 | friend INLINE void SetToZero(Rall1d<T,V,S>& value); |
| 209 | friend INLINE void SetToOne(Rall1d<T,V,S>& value); |
| 210 | // = Equality in an eps-interval |
| 211 | friend INLINE bool Equal(const Rall1d<T,V,S>& y,const Rall1d<T,V,S>& x,double eps); |
| 212 | */ |
| 213 | }; |
| 214 | |
| 215 | |
| 216 | template <class T,class V,class S> |
| 217 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/`operator/`(29844cb63be80192). /(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& lhs,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& rhs) |
| 218 | { |
| 219 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(lhs.tcxx . . $ KDL/Rall1d#t./cxx . . $ KDL/`operator/`(29844cb63be80192).rhs.tcxx . . $ KDL/Rall1d#t.,(lhs.gradcxx . . $ KDL/Rall1d#grad.*rhs.tcxx . . $ KDL/Rall1d#t.-lhs.tcxx . . $ KDL/Rall1d#t.*rhs.gradcxx . . $ KDL/Rall1d#grad.)/cxx . . $ KDL/`operator/`(29844cb63be80192).(rhs.tcxx . . $ KDL/Rall1d#t.*rhs.tcxx . . $ KDL/Rall1d#t.)); |
| 220 | } |
| 221 | |
| 222 | template <class T,class V,class S> |
| 223 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/`operator*`(29844cb63be80192). *(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& lhs,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& rhs) |
| 224 | { |
| 225 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(lhs.tcxx . . $ KDL/Rall1d#t.*cxx . . $ KDL/`operator*`(29844cb63be80192).rhs.tcxx . . $ KDL/Rall1d#t.,rhs.tcxx . . $ KDL/Rall1d#t.*cxx . . $ KDL/`operator*`(29844cb63be80192).lhs.gradcxx . . $ KDL/Rall1d#grad.+lhs.tcxx . . $ KDL/Rall1d#t.*cxx . . $ KDL/`operator*`(29844cb63be80192).rhs.gradcxx . . $ KDL/Rall1d#grad.); |
| 226 | } |
| 227 | |
| 228 | template <class T,class V,class S> |
| 229 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/operator+(29844cb63be80192). +(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& lhs,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& rhs) |
| 230 | { |
| 231 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(lhs.tcxx . . $ KDL/Rall1d#t.+cxx . . $ KDL/operator+(29844cb63be80192).rhs.tcxx . . $ KDL/Rall1d#t.,lhs.gradcxx . . $ KDL/Rall1d#grad.+cxx . . $ KDL/operator+(29844cb63be80192).rhs.gradcxx . . $ KDL/Rall1d#grad.); |
| 232 | } |
| 233 | |
| 234 | |
| 235 | template <class T,class V,class S> |
| 236 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/operator-(29844cb63be80192). -(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& lhs,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& rhs) |
| 237 | { |
| 238 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(lhs.tcxx . . $ KDL/Rall1d#t.-cxx . . $ KDL/operator-(29844cb63be80192).rhs.tcxx . . $ KDL/Rall1d#t.,lhs.gradcxx . . $ KDL/Rall1d#grad.-cxx . . $ KDL/operator-(29844cb63be80192).rhs.gradcxx . . $ KDL/Rall1d#grad.); |
| 239 | } |
| 240 | |
| 241 | template <class T,class V,class S> |
| 242 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/operator-(39e6e3cf71bf354f). -(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& arg) |
| 243 | { |
| 244 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(-cxx . . $ KDL/operator-(39e6e3cf71bf354f).arg.tcxx . . $ KDL/Rall1d#t.,-cxx . . $ KDL/operator-(39e6e3cf71bf354f).arg.gradcxx . . $ KDL/Rall1d#grad.); |
| 245 | } |
| 246 | |
| 247 | template <class T,class V,class S> |
| 248 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/`operator*`(a482697fe6da4856). *(S s,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& v) |
| 249 | { |
| 250 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(s*cxx . . $ KDL/`operator*`(a482697fe6da4856).v.tcxx . . $ KDL/Rall1d#t.,s*cxx . . $ KDL/`operator*`(a482697fe6da4856).v.gradcxx . . $ KDL/Rall1d#grad.); |
| 251 | } |
| 252 | |
| 253 | template <class T,class V,class S> |
| 254 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/`operator*`(f36a80f2ac98a974). *(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& v,S s) |
| 255 | { |
| 256 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v.tcxx . . $ KDL/Rall1d#t.*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).s,v.gradcxx . . $ KDL/Rall1d#grad.*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).s); |
| 257 | } |
| 258 | |
| 259 | template <class T,class V,class S> |
| 260 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/operator+(a482697fe6da4856). +(S s,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& v) |
| 261 | { |
| 262 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(s+cxx . . $ KDL/operator+(a482697fe6da4856).v.tcxx . . $ KDL/Rall1d#t.,v.gradcxx . . $ KDL/Rall1d#grad.); |
| 263 | } |
| 264 | |
| 265 | template <class T,class V,class S> |
| 266 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/operator+(f36a80f2ac98a974). +(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& v,S s) |
| 267 | { |
| 268 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v.tcxx . . $ KDL/Rall1d#t.+cxx . . $ KDL/operator+(f36a80f2ac98a974).s,v.gradcxx . . $ KDL/Rall1d#grad.); |
| 269 | } |
| 270 | |
| 271 | template <class T,class V,class S> |
| 272 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/operator-(a482697fe6da4856). -(S s,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& v) |
| 273 | { |
| 274 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(s-cxx . . $ KDL/operator-(a482697fe6da4856).v.tcxx . . $ KDL/Rall1d#t.,-cxx . . $ KDL/operator-(a482697fe6da4856).v.gradcxx . . $ KDL/Rall1d#grad.); |
| 275 | } |
| 276 | |
| 277 | template <class T,class V,class S> |
| 278 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/operator-(f36a80f2ac98a974). -(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& v,S s) |
| 279 | { |
| 280 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v.tcxx . . $ KDL/Rall1d#t.-cxx . . $ KDL/operator-(f36a80f2ac98a974).s,v.gradcxx . . $ KDL/Rall1d#grad.); |
| 281 | } |
| 282 | |
| 283 | template <class T,class V,class S> |
| 284 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/`operator/`(a482697fe6da4856). /(S s,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& v) |
| 285 | { |
| 286 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(s/cxx . . $ KDL/`operator/`(a482697fe6da4856).v.tcxx . . $ KDL/Rall1d#t.,(-cxx . . $ KDL/operator-(f36a80f2ac98a974).s*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).v.gradcxx . . $ KDL/Rall1d#grad.)/cxx . . $ KDL/`operator/`(a482697fe6da4856).(v.tcxx . . $ KDL/Rall1d#t.*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).v.tcxx . . $ KDL/Rall1d#t.)); |
| 287 | } |
| 288 | |
| 289 | template <class T,class V,class S> |
| 290 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> operatorcxx . . $ KDL/`operator/`(f36a80f2ac98a974). /(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& v,S s) |
| 291 | { |
| 292 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v.tcxx . . $ KDL/Rall1d#t./cxx . . $ KDL/`operator/`(f36a80f2ac98a974).s,v.gradcxx . . $ KDL/Rall1d#grad./cxx . . $ KDL/`operator/`(f36a80f2ac98a974).s); |
| 293 | } |
| 294 | |
| 295 | |
| 296 | template <class T,class V,class S> |
| 297 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> expcxx . . $ KDL/exp(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& arg) |
| 298 | { |
| 299 | T v; |
| 300 | v= (expcxx . . $ KDL/exp(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.)); |
| 301 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,v*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).arg.gradcxx . . $ KDL/Rall1d#grad.); |
| 302 | } |
| 303 | |
| 304 | template <class T,class V,class S> |
| 305 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> logcxx . . $ KDL/log(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& arg) |
| 306 | { |
| 307 | T v; |
| 308 | v=(logcxx . . $ KDL/log(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.)); |
| 309 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,arg.gradcxx . . $ KDL/Rall1d#grad./cxx . . $ KDL/`operator/`(f36a80f2ac98a974).arg.tcxx . . $ KDL/Rall1d#t.); |
| 310 | } |
| 311 | |
| 312 | template <class T,class V,class S> |
| 313 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> sincxx . . $ KDL/sin(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& arg) |
| 314 | { |
| 315 | T v; |
| 316 | v=(sincxx . . $ KDL/sin(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.)); |
| 317 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,coscxx . . $ KDL/cos(fee4f1d22bc8e617).(arg.tcxx . . $ KDL/Rall1d#t.)*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).arg.gradcxx . . $ KDL/Rall1d#grad.); |
| 318 | } |
| 319 | |
| 320 | template <class T,class V,class S> |
| 321 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> coscxx . . $ KDL/cos(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& arg) |
| 322 | { |
| 323 | T v; |
| 324 | v=(coscxx . . $ KDL/cos(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.)); |
| 325 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,-cxx . . $ KDL/operator-(f36a80f2ac98a974).sincxx . . $ KDL/sin(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.)*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).arg.gradcxx . . $ KDL/Rall1d#grad.); |
| 326 | } |
| 327 | |
| 328 | template <class T,class V,class S> |
| 329 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> tancxx . . $ KDL/tan(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& arg) |
| 330 | { |
| 331 | T v; |
| 332 | v=(tancxx . . $ KDL/tan(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.)); |
| 333 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,arg.gradcxx . . $ KDL/Rall1d#grad./cxx . . $ KDL/`operator/`(f36a80f2ac98a974).sqrcxx . . $ KDL/sqr(447c67c6676f75c3).(coscxx . . $ KDL/cos(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.))); |
| 334 | } |
| 335 | |
| 336 | template <class T,class V,class S> |
| 337 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> sinhcxx . . $ KDL/sinh(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& arg) |
| 338 | { |
| 339 | T v; |
| 340 | v=(sinhcxx . . $ KDL/sinh(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.)); |
| 341 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,coshcxx . . $ KDL/cosh(fee4f1d22bc8e617).(arg.tcxx . . $ KDL/Rall1d#t.)*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).arg.gradcxx . . $ KDL/Rall1d#grad.); |
| 342 | } |
| 343 | |
| 344 | template <class T,class V,class S> |
| 345 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> coshcxx . . $ KDL/cosh(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& arg) |
| 346 | { |
| 347 | T v; |
| 348 | v=(coshcxx . . $ KDL/cosh(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.)); |
| 349 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,sinhcxx . . $ KDL/sinh(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.)*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).arg.gradcxx . . $ KDL/Rall1d#grad.); |
| 350 | } |
| 351 | |
| 352 | template <class T,class V,class S> |
| 353 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> sqrcxx . . $ KDL/sqr(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& arg) |
| 354 | { |
| 355 | T v; |
| 356 | v=(arg.tcxx . . $ KDL/Rall1d#t.*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).arg.tcxx . . $ KDL/Rall1d#t.); |
| 357 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,(2.0*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).arg.tcxx . . $ KDL/Rall1d#t.)*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).arg.gradcxx . . $ KDL/Rall1d#grad.); |
| 358 | } |
| 359 | |
| 360 | template <class T,class V,class S> |
| 361 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> powcxx . . $ KDL/pow(ea710dd26fe3cc2f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& arg,double m) |
| 362 | { |
| 363 | T v; |
| 364 | v=(powcxx . . $ KDL/pow(ea710dd26fe3cc2f).(arg.tcxx . . $ KDL/Rall1d#t.,m)); |
| 365 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,(m*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).v/cxx . . $ KDL/`operator/`(f36a80f2ac98a974).arg.tcxx . . $ KDL/Rall1d#t.)*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).arg.gradcxx . . $ KDL/Rall1d#grad.); |
| 366 | } |
| 367 | |
| 368 | template <class T,class V,class S> |
| 369 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> sqrtcxx . . $ KDL/sqrt(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& arg) |
| 370 | { |
| 371 | T v; |
| 372 | v=sqrtcxx . . $ KDL/sqrt(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.); |
| 373 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v, (0.5/cxx . . $ KDL/`operator/`(f36a80f2ac98a974).v)*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).arg.gradcxx . . $ KDL/Rall1d#grad.); |
| 374 | } |
| 375 | |
| 376 | template <class T,class V,class S> |
| 377 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> atancxx . . $ KDL/atan(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& x) |
| 378 | { |
| 379 | T v; |
| 380 | v=(atancxx . . $ KDL/atan(39e6e3cf71bf354f).(x.tcxx . . $ KDL/Rall1d#t.)); |
| 381 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,x.gradcxx . . $ KDL/Rall1d#grad./cxx . . $ KDL/`operator/`(f36a80f2ac98a974).(1.0+cxx . . $ KDL/operator+(f36a80f2ac98a974).sqrcxx . . $ KDL/sqr(39e6e3cf71bf354f).(x.tcxx . . $ KDL/Rall1d#t.))); |
| 382 | } |
| 383 | |
| 384 | template <class T,class V,class S> |
| 385 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> hypotcxx . . $ KDL/hypot(29844cb63be80192).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& y,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& x) |
| 386 | { |
| 387 | T v; |
| 388 | v=(hypotcxx . . $ KDL/hypot(29844cb63be80192).(y.tcxx . . $ KDL/Rall1d#t.,x.tcxx . . $ KDL/Rall1d#t.)); |
| 389 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,(x.tcxx . . $ KDL/Rall1d#t./cxx . . $ KDL/`operator/`(f36a80f2ac98a974).v)*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).x.gradcxx . . $ KDL/Rall1d#grad.+cxx . . $ KDL/operator+(f36a80f2ac98a974).(y.tcxx . . $ KDL/Rall1d#t./cxx . . $ KDL/`operator/`(f36a80f2ac98a974).v)*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).y.gradcxx . . $ KDL/Rall1d#grad.); |
| 390 | } |
| 391 | |
| 392 | template <class T,class V,class S> |
| 393 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> asincxx . . $ KDL/asin(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& x) |
| 394 | { |
| 395 | T v; |
| 396 | v=(asincxx . . $ KDL/asin(39e6e3cf71bf354f).(x.tcxx . . $ KDL/Rall1d#t.)); |
| 397 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,x.gradcxx . . $ KDL/Rall1d#grad./cxx . . $ KDL/`operator/`(f36a80f2ac98a974).sqrtcxx . . $ KDL/sqrt(39e6e3cf71bf354f).(1.0-cxx . . $ KDL/operator-(f36a80f2ac98a974).sqrcxx . . $ KDL/sqr(39e6e3cf71bf354f).(x.tcxx . . $ KDL/Rall1d#t.))); |
| 398 | } |
| 399 | |
| 400 | template <class T,class V,class S> |
| 401 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> acoscxx . . $ KDL/acos(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& x) |
| 402 | { |
| 403 | T v; |
| 404 | v=(acoscxx . . $ KDL/acos(39e6e3cf71bf354f).(x.tcxx . . $ KDL/Rall1d#t.)); |
| 405 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,-cxx . . $ KDL/operator-(f36a80f2ac98a974).x.gradcxx . . $ KDL/Rall1d#grad./cxx . . $ KDL/`operator/`(f36a80f2ac98a974).sqrtcxx . . $ KDL/sqrt(39e6e3cf71bf354f).(1.0-cxx . . $ KDL/operator-(f36a80f2ac98a974).sqrcxx . . $ KDL/sqr(39e6e3cf71bf354f).(x.tcxx . . $ KDL/Rall1d#t.))); |
| 406 | } |
| 407 | |
| 408 | template <class T,class V,class S> |
| 409 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> abscxx . . $ KDL/abs(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& x) |
| 410 | { |
| 411 | T v; |
| 412 | v=(Sign(x)); |
| 413 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).x,v*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).x.gradcxx . . $ KDL/Rall1d#grad.); |
| 414 | } |
| 415 | |
| 416 | |
| 417 | template <class T,class V,class S> |
| 418 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! S Normcxx . . $ KDL/Norm(447b2ce5f8a7963f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& value) |
| 419 | { |
| 420 | return Normcxx . . $ KDL/Norm(447b2ce5f8a7963f).(value.tcxx . . $ KDL/Rall1d#t.); |
| 421 | } |
| 422 | |
| 423 | template <class T,class V,class S> |
| 424 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> tanhcxx . . $ KDL/tanh(39e6e3cf71bf354f).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& arg) |
| 425 | { |
| 426 | T v(tanhcxx . . $ KDL/tanh(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.)); |
| 427 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(v,arg.gradcxx . . $ KDL/Rall1d#grad./cxx . . $ KDL/`operator/`(f36a80f2ac98a974).sqrcxx . . $ KDL/sqr(39e6e3cf71bf354f).(coshcxx . . $ KDL/cosh(39e6e3cf71bf354f).(arg.tcxx . . $ KDL/Rall1d#t.))); |
| 428 | } |
| 429 | |
| 430 | template <class T,class V,class S> |
| 431 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> atan2cxx . . $ KDL/atan2(29844cb63be80192).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& y,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& x) |
| 432 | { |
| 433 | T v(x.tcxx . . $ KDL/Rall1d#t.*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).x.tcxx . . $ KDL/Rall1d#t.+cxx . . $ KDL/operator+(f36a80f2ac98a974).y.tcxx . . $ KDL/Rall1d#t.*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).y.tcxx . . $ KDL/Rall1d#t.); |
| 434 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>(atan2cxx . . $ KDL/atan2(29844cb63be80192).(y.tcxx . . $ KDL/Rall1d#t.,x.tcxx . . $ KDL/Rall1d#t.),(x.tcxx . . $ KDL/Rall1d#t.*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).y.gradcxx . . $ KDL/Rall1d#grad.-cxx . . $ KDL/operator-(f36a80f2ac98a974).y.tcxx . . $ KDL/Rall1d#t.*cxx . . $ KDL/`operator*`(f36a80f2ac98a974).x.gradcxx . . $ KDL/Rall1d#grad.)/cxx . . $ KDL/`operator/`(f36a80f2ac98a974).v); |
| 435 | } |
| 436 | |
| 437 | |
| 438 | template <class T,class V,class S> |
| 439 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! Rall1dcxx . . $ KDL/Rall1d#<T,V,S> LinCombcxx . . $ KDL/LinComb(b2626fe2d54dda4b).(S alfa,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& a, |
| 440 | const T& beta,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& b ) { |
| 441 | return Rall1dcxx . . $ KDL/Rall1d#<T,V,S>( |
| 442 | LinCombcxx . . $ KDL/LinComb(b2626fe2d54dda4b).(alfa,a.tcxx . . $ KDL/Rall1d#t.,beta,b.tcxx . . $ KDL/Rall1d#t.), |
| 443 | LinCombcxx . . $ KDL/LinComb(b2626fe2d54dda4b).(alfa,a.gradcxx . . $ KDL/Rall1d#grad.,beta,b.gradcxx . . $ KDL/Rall1d#grad.) |
| 444 | ); |
| 445 | } |
| 446 | |
| 447 | template <class T,class V,class S> |
| 448 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! void LinCombRcxx . . $ KDL/LinCombR(1b2b834133ff5ad0).(S alfa,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& a, |
| 449 | const T& beta,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& b,Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& result ) { |
| 450 | LinCombRcxx . . $ KDL/LinCombR(1b2b834133ff5ad0).(alfa, a.tcxx . . $ KDL/Rall1d#t., beta, b.tcxx . . $ KDL/Rall1d#t., result.tcxx . . $ KDL/Rall1d#t.); |
| 451 | LinCombRcxx . . $ KDL/LinCombR(1b2b834133ff5ad0).(alfa, a.gradcxx . . $ KDL/Rall1d#grad., beta, b.gradcxx . . $ KDL/Rall1d#grad., result.gradcxx . . $ KDL/Rall1d#grad.); |
| 452 | } |
| 453 | |
| 454 | |
| 455 | template <class T,class V,class S> |
| 456 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! void SetToZerocxx . . $ KDL/SetToZero(168b351719db0629).(Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& value) |
| 457 | { |
| 458 | SetToZerocxx . . $ KDL/SetToZero(168b351719db0629).(value.gradcxx . . $ KDL/Rall1d#grad.); |
| 459 | SetToZerocxx . . $ KDL/SetToZero(168b351719db0629).(value.tcxx . . $ KDL/Rall1d#t.); |
| 460 | } |
| 461 | template <class T,class V,class S> |
| 462 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! void SetToIdentitycxx . . $ KDL/SetToIdentity(168b351719db0629).(Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& value) |
| 463 | { |
| 464 | SetToIdentitycxx . . $ KDL/SetToIdentity(168b351719db0629).(value.tcxx . . $ KDL/Rall1d#t.); |
| 465 | SetToZerocxx . . $ KDL/SetToZero(168b351719db0629).(value.gradcxx . . $ KDL/Rall1d#grad.); |
| 466 | } |
| 467 | |
| 468 | template <class T,class V,class S> |
| 469 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! bool Equalcxx . . $ KDL/Equal(42a7984af7681c67).(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& y,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& x,double eps=epsiloncxx . . $ KDL/epsilon.) |
| 470 | { |
| 471 | return (Equalcxx . . $ KDL/Equal(42a7984af7681c67).(x.tcxx . . $ KDL/Rall1d#t.,y.tcxx . . $ KDL/Rall1d#t.,eps)&&Equalcxx . . $ KDL/Equal(42a7984af7681c67).(x.gradcxx . . $ KDL/Rall1d#grad.,y.gradcxx . . $ KDL/Rall1d#grad.,eps)); |
| 472 | } |
| 473 | |
| 474 | template <class T,class V,class S> |
| 475 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! bool operatorcxx . . $ KDL/`operator==`(9b99a145336c9971).==(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& y,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& x) |
| 476 | { |
| 477 | #ifdef KDL_USE_EQUALcxx . . $ `/build/tmp.qoPtf5uQb2/package/orocos_kdl/src/utilities/kdl-config.h:33:9`! |
| 478 | return Equalcxx . . $ KDL/Equal(42a7984af7681c67).(y, x); |
| 479 | #else |
| 480 | return (x.t == y.t && x.grad == y.grad); |
| 481 | #endif |
| 482 | } |
| 483 | |
| 484 | template <class T,class V,class S> |
| 485 | INLINEcxx . . $ `orocos_kdl/src/utilities/utility.h:227:13`! bool operatorcxx . . $ KDL/`operator!=`(9b99a145336c9971).!=(const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& y,const Rall1dcxx . . $ KDL/Rall1d#<T,V,S>& x) |
| 486 | { |
| 487 | return !operatorcxx . . $ KDL/`operator==`(9b99a145336c9971).==(y, x); |
| 488 | } |
| 489 | |
| 490 | } |
| 491 | |
| 492 | |
| 493 | |
| 494 | #endif |