Lines Matching refs:AutoDiffScalar
33 template<typename _DerType> class AutoDiffScalar; variable
36 inline AutoDiffScalar<NewDerType> MakeAutoDiffScalar(const typename NewDerType::Scalar& value, cons… in MakeAutoDiffScalar()
37 return AutoDiffScalar<NewDerType>(value,der); in MakeAutoDiffScalar()
67 class AutoDiffScalar
84 AutoDiffScalar() {} in AutoDiffScalar() function
88 AutoDiffScalar(const Scalar& value, int nbDer, int derNumber) in AutoDiffScalar() function
96 /*explicit*/ AutoDiffScalar(const Real& value) in AutoDiffScalar() function
104 AutoDiffScalar(const Scalar& value, const DerType& der) in AutoDiffScalar() function
109 AutoDiffScalar(const AutoDiffScalar<OtherDerType>& other
119 friend std::ostream & operator << (std::ostream & s, const AutoDiffScalar& a)
124 AutoDiffScalar(const AutoDiffScalar& other) in AutoDiffScalar() function
129 inline AutoDiffScalar& operator=(const AutoDiffScalar<OtherDerType>& other)
136 inline AutoDiffScalar& operator=(const AutoDiffScalar& other)
143 inline AutoDiffScalar& operator=(const Scalar& other)
167 … friend inline bool operator< (const Scalar& a, const AutoDiffScalar& b) { return a < b.value(); }
168 … friend inline bool operator<=(const Scalar& a, const AutoDiffScalar& b) { return a <= b.value(); }
169 … friend inline bool operator> (const Scalar& a, const AutoDiffScalar& b) { return a > b.value(); }
170 … friend inline bool operator>=(const Scalar& a, const AutoDiffScalar& b) { return a >= b.value(); }
171 … friend inline bool operator==(const Scalar& a, const AutoDiffScalar& b) { return a == b.value(); }
172 … friend inline bool operator!=(const Scalar& a, const AutoDiffScalar& b) { return a != b.value(); }
174 …template<typename OtherDerType> inline bool operator< (const AutoDiffScalar<OtherDerType>& b) cons…
175 …template<typename OtherDerType> inline bool operator<=(const AutoDiffScalar<OtherDerType>& b) cons…
176 …template<typename OtherDerType> inline bool operator> (const AutoDiffScalar<OtherDerType>& b) cons…
177 …template<typename OtherDerType> inline bool operator>=(const AutoDiffScalar<OtherDerType>& b) cons…
178 …template<typename OtherDerType> inline bool operator==(const AutoDiffScalar<OtherDerType>& b) cons…
179 …template<typename OtherDerType> inline bool operator!=(const AutoDiffScalar<OtherDerType>& b) cons…
181 inline const AutoDiffScalar<DerType&> operator+(const Scalar& other) const
183 return AutoDiffScalar<DerType&>(m_value + other, m_derivatives);
186 friend inline const AutoDiffScalar<DerType&> operator+(const Scalar& a, const AutoDiffScalar& b)
188 return AutoDiffScalar<DerType&>(a + b.value(), b.derivatives());
201 inline AutoDiffScalar& operator+=(const Scalar& other)
208 …inline const AutoDiffScalar<CwiseBinaryOp<internal::scalar_sum_op<Scalar>,const DerType,const type…
209 operator+(const AutoDiffScalar<OtherDerType>& other) const
212 …return AutoDiffScalar<CwiseBinaryOp<internal::scalar_sum_op<Scalar>,const DerType,const typename i…
218 inline AutoDiffScalar&
219 operator+=(const AutoDiffScalar<OtherDerType>& other)
225 inline const AutoDiffScalar<DerType&> operator-(const Scalar& b) const
227 return AutoDiffScalar<DerType&>(m_value - b, m_derivatives);
230 …friend inline const AutoDiffScalar<CwiseUnaryOp<internal::scalar_opposite_op<Scalar>, const DerTyp…
231 operator-(const Scalar& a, const AutoDiffScalar& b)
233 return AutoDiffScalar<CwiseUnaryOp<internal::scalar_opposite_op<Scalar>, const DerType> >
237 inline AutoDiffScalar& operator-=(const Scalar& other)
244 …inline const AutoDiffScalar<CwiseBinaryOp<internal::scalar_difference_op<Scalar>, const DerType,co…
245 operator-(const AutoDiffScalar<OtherDerType>& other) const
248 …return AutoDiffScalar<CwiseBinaryOp<internal::scalar_difference_op<Scalar>, const DerType,const ty…
254 inline AutoDiffScalar&
255 operator-=(const AutoDiffScalar<OtherDerType>& other)
261 inline const AutoDiffScalar<CwiseUnaryOp<internal::scalar_opposite_op<Scalar>, const DerType> >
264 return AutoDiffScalar<CwiseUnaryOp<internal::scalar_opposite_op<Scalar>, const DerType> >(
269 inline const AutoDiffScalar<EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(DerType,Scalar,product) >
275 …friend inline const AutoDiffScalar<EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(DerType,Scalar,product) >
276 operator*(const Scalar& other, const AutoDiffScalar& a)
297 inline const AutoDiffScalar<EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(DerType,Scalar,product) >
303 …friend inline const AutoDiffScalar<EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(DerType,Scalar,product) >
304 operator/(const Scalar& other, const AutoDiffScalar& a)
326 inline const AutoDiffScalar<EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(
330 operator/(const AutoDiffScalar<OtherDerType>& other) const
340 inline const AutoDiffScalar<CwiseBinaryOp<internal::scalar_sum_op<Scalar>,
343 operator*(const AutoDiffScalar<OtherDerType>& other) const
351 inline AutoDiffScalar& operator*=(const Scalar& other)
358 inline AutoDiffScalar& operator*=(const AutoDiffScalar<OtherDerType>& other)
364 inline AutoDiffScalar& operator/=(const Scalar& other)
371 inline AutoDiffScalar& operator/=(const AutoDiffScalar<OtherDerType>& other)
404 …const AutoDiffScalar<_DerType>& derived() const { return *static_cast<const AutoDiffScalar<_DerTyp…
405 AutoDiffScalar<_DerType>& derived() { return *static_cast<AutoDiffScalar<_DerType>*>(this); }
408 inline const AutoDiffScalar<DerType&> operator+(const Real& other) const
410 return AutoDiffScalar<DerType&>(derived().value() + other, derived().derivatives());
413 …friend inline const AutoDiffScalar<DerType&> operator+(const Real& a, const AutoDiffScalar<_DerTyp…
415 return AutoDiffScalar<DerType&>(a + b.value(), b.derivatives());
418 inline AutoDiffScalar<_DerType>& operator+=(const Real& other)
425 …inline const AutoDiffScalar<typename CwiseUnaryOp<bind2nd_op<scalar_product_op<Scalar,Real> >, Der…
428 …return AutoDiffScalar<typename CwiseUnaryOp<bind2nd_op<scalar_product_op<Scalar,Real> >, DerType>:…
433 …friend inline const AutoDiffScalar<typename CwiseUnaryOp<bind1st_op<scalar_product_op<Real,Scalar>…
434 operator*(const Real& other, const AutoDiffScalar<_DerType>& a)
436 …return AutoDiffScalar<typename CwiseUnaryOp<bind1st_op<scalar_product_op<Real,Scalar> >, DerType>:…
441 inline AutoDiffScalar<_DerType>& operator*=(const Scalar& other)
503 struct ScalarBinaryOpTraits<AutoDiffScalar<DerType>,typename DerType::Scalar,BinOp>
505 typedef AutoDiffScalar<DerType> ReturnType;
509 struct ScalarBinaryOpTraits<typename DerType::Scalar,AutoDiffScalar<DerType>, BinOp>
511 typedef AutoDiffScalar<DerType> ReturnType;
533 inline const Eigen::AutoDiffScalar< \
535 FUNC(const Eigen::AutoDiffScalar<DerType>& x) { \
542 inline const AutoDiffScalar<DerType>& conj(const AutoDiffScalar<DerType>& x) { return x; }
544 inline const AutoDiffScalar<DerType>& real(const AutoDiffScalar<DerType>& x) { return x; }
546 inline typename DerType::Scalar imag(const AutoDiffScalar<DerType>&) { return 0.; }
548 inline AutoDiffScalar<typename Eigen::internal::remove_all<DerType>::type::PlainObject> (min)(const…
549 typedef AutoDiffScalar<typename Eigen::internal::remove_all<DerType>::type::PlainObject> ADS;
553 inline AutoDiffScalar<typename Eigen::internal::remove_all<DerType>::type::PlainObject> (max)(const…
554 typedef AutoDiffScalar<typename Eigen::internal::remove_all<DerType>::type::PlainObject> ADS;
558 inline AutoDiffScalar<typename Eigen::internal::remove_all<DerType>::type::PlainObject> (min)(const…
559 typedef AutoDiffScalar<typename Eigen::internal::remove_all<DerType>::type::PlainObject> ADS;
563 inline AutoDiffScalar<typename Eigen::internal::remove_all<DerType>::type::PlainObject> (max)(const…
564 typedef AutoDiffScalar<typename Eigen::internal::remove_all<DerType>::type::PlainObject> ADS;
568 …nline AutoDiffScalar<typename Eigen::internal::remove_all<DerType>::type::PlainObject> (min)(const…
572 …nline AutoDiffScalar<typename Eigen::internal::remove_all<DerType>::type::PlainObject> (max)(const…
610 inline const Eigen::AutoDiffScalar<
612 pow(const Eigen::AutoDiffScalar<DerType> &x, const typename internal::traits<typename internal::rem…
621 inline const AutoDiffScalar<Matrix<typename internal::traits<typename internal::remove_all<DerTypeA…
622 atan2(const AutoDiffScalar<DerTypeA>& a, const AutoDiffScalar<DerTypeB>& b)
626 typedef AutoDiffScalar<Matrix<Scalar,Dynamic,1> > PlainADS;
670 template<typename DerType> struct NumTraits<AutoDiffScalar<DerType> >
674 …typedef AutoDiffScalar<Matrix<typename NumTraits<typename DerTypeCleaned::Scalar>::Real,DerTypeCle…
676 typedef AutoDiffScalar<DerType> NonInteger;
677 typedef AutoDiffScalar<DerType> Nested;
688 class numeric_limits<Eigen::AutoDiffScalar<T> >