Go to the documentation of this file.
15 #include <kdl/rall1d.h>
16 #include <kdl/rall1d_io.h>
17 #include <kdl/rall2d.h>
18 #include <kdl/rall2d_io.h>
19 #include <kdl/fvector.h>
20 #include <kdl/fvector_io.h>
21 #include <kdl/fvector2.h>
22 #include <kdl/fvector2_io.h>
23 #include <kdl/test_macros.h>
31 template <
class T,
int N>
33 public Rall1d<Rall1d<T, FVector<T,N> >, FVector2<Rall1d<T,FVector<T,N> >,N,T>,T>
41 this->t.grad= FVector<T,N>(d);
42 for (
int i=0;i<N;i++) {
43 this->grad[i].t = d[i];
44 this->grad[i].grad = FVector<T,N>(dd[i]);
52 public Rall1d< RallNd<N-1>, RallNd<N-1>, double >
59 this->t =
RallNd<N-1>(value,d);
60 this->grad =
RallNd<N-1>(d[0],&d[1]);
69 Rall1d<double,double,double>(arg) {}
88 KDL_DIFF( (a*a)*a, a*(a*a) );
89 KDL_DIFF( (-a)+a,T::Zero() );
90 KDL_DIFF( 2.0*a, a+a );
91 KDL_DIFF( a*2.0, a+a );
92 KDL_DIFF( a+2.0*a, 3.0*a );
93 KDL_DIFF( (a+2.0)*a, a*a +2.0*a );
94 KDL_DIFF( ((a+a)+a),(a+(a+a)) );
99 KDL_DIFF(
exp(
log(a)), a );
103 KDL_DIFF( 2.0*
sin(a)*
cos(a),
sin(2.0*a) );
104 KDL_DIFF( (a*a)/a, a );
105 KDL_DIFF( (a*a*a)/(a*a), a );
108 KDL_DIFF(
pow(
pow(a,3.0),1.0/3) , a );
109 KDL_DIFF(
hypot(3.0*a,4.0*a), 5.0*a);
120 const double pb[4] = { 1.0, 2.0, 3.0, 4.0 };
137 Rall1d<
double, FVector<double,2> >(
139 FVector<double,2>(2,3)
141 FVector2<
Rall1d<
double,FVector<double,2> >,2,
double> (
142 Rall1d<
double,FVector<double,2> >(
144 FVector<double,2>(5,6)
146 Rall1d<
double,FVector<double,2> >(
148 FVector<double,2>(6,9)
155 double pj[] = {2.0,3.0,4.0};
156 double ppj[][3] = {{5.0,6.0,7.0},{6.0,8.0,9.0},{7.0,9.0,10.0}};
161 double pk[] = {2.0,3.0,4.0,5.0};
INLINE Rall1d< T, V, S > pow(const Rall1d< T, V, S > &arg, double m)
INLINE Rall1d< T, V, S > sqrt(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > asin(const Rall1d< T, V, S > &x)
INLINE Rall1d< T, V, S > sin(const Rall1d< T, V, S > &arg)
RallNd(double value, double d[])
INLINE Rall1d< T, V, S > exp(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > cos(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > atan2(const Rall1d< T, V, S > &y, const Rall1d< T, V, S > &x)
INLINE Rall1d< T, V, S > tan(const Rall1d< T, V, S > &arg)
RallNd(const Rall1d< double > &arg)
Rall2dN(T val, T d[N], T dd[N][N])
INLINE Rall1d< T, V, S > log(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > sinh(const Rall1d< T, V, S > &arg)
RallNd(const Rall1d< RallNd< N-1 >, RallNd< N-1 >, double > &arg)
INLINE Rall1d< T, V, S > hypot(const Rall1d< T, V, S > &y, const Rall1d< T, V, S > &x)
INLINE Rall1d< T, V, S > atan(const Rall1d< T, V, S > &x)
INLINE Rall1d< T, V, S > cosh(const Rall1d< T, V, S > &arg)
RallNd(double value, double d[])
INLINE Rall1d< T, V, S > sqr(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > tanh(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > acos(const Rall1d< T, V, S > &x)