Lines Matching refs:AutoDiffScalar

60 class AutoDiffScalar
77 AutoDiffScalar() {} in AutoDiffScalar() function
81 AutoDiffScalar(const Scalar& value, int nbDer, int derNumber) in AutoDiffScalar() function
89 /*explicit*/ AutoDiffScalar(const Real& value) in AutoDiffScalar() function
97 AutoDiffScalar(const Scalar& value, const DerType& der) in AutoDiffScalar() function
102 AutoDiffScalar(const AutoDiffScalar<OtherDerType>& other) in AutoDiffScalar() function
106 friend std::ostream & operator << (std::ostream & s, const AutoDiffScalar& a)
111 AutoDiffScalar(const AutoDiffScalar& other) in AutoDiffScalar() function
116 inline AutoDiffScalar& operator=(const AutoDiffScalar<OtherDerType>& other)
123 inline AutoDiffScalar& operator=(const AutoDiffScalar& other)
146 … friend inline bool operator< (const Scalar& a, const AutoDiffScalar& b) { return a < b.value(); }
147 … friend inline bool operator<=(const Scalar& a, const AutoDiffScalar& b) { return a <= b.value(); }
148 … friend inline bool operator> (const Scalar& a, const AutoDiffScalar& b) { return a > b.value(); }
149 … friend inline bool operator>=(const Scalar& a, const AutoDiffScalar& b) { return a >= b.value(); }
150 … friend inline bool operator==(const Scalar& a, const AutoDiffScalar& b) { return a == b.value(); }
151 … friend inline bool operator!=(const Scalar& a, const AutoDiffScalar& b) { return a != b.value(); }
153 …template<typename OtherDerType> inline bool operator< (const AutoDiffScalar<OtherDerType>& b) cons…
154 …template<typename OtherDerType> inline bool operator<=(const AutoDiffScalar<OtherDerType>& b) cons…
155 …template<typename OtherDerType> inline bool operator> (const AutoDiffScalar<OtherDerType>& b) cons…
156 …template<typename OtherDerType> inline bool operator>=(const AutoDiffScalar<OtherDerType>& b) cons…
157 …template<typename OtherDerType> inline bool operator==(const AutoDiffScalar<OtherDerType>& b) cons…
158 …template<typename OtherDerType> inline bool operator!=(const AutoDiffScalar<OtherDerType>& b) cons…
160 inline const AutoDiffScalar<DerType&> operator+(const Scalar& other) const
162 return AutoDiffScalar<DerType&>(m_value + other, m_derivatives);
165 friend inline const AutoDiffScalar<DerType&> operator+(const Scalar& a, const AutoDiffScalar& b)
167 return AutoDiffScalar<DerType&>(a + b.value(), b.derivatives());
180 inline AutoDiffScalar& operator+=(const Scalar& other)
187 …inline const AutoDiffScalar<CwiseBinaryOp<internal::scalar_sum_op<Scalar>,const DerType,const type…
188 operator+(const AutoDiffScalar<OtherDerType>& other) const
191 …return AutoDiffScalar<CwiseBinaryOp<internal::scalar_sum_op<Scalar>,const DerType,const typename i…
197 inline AutoDiffScalar&
198 operator+=(const AutoDiffScalar<OtherDerType>& other)
204 inline const AutoDiffScalar<DerType&> operator-(const Scalar& b) const
206 return AutoDiffScalar<DerType&>(m_value - b, m_derivatives);
209 …friend inline const AutoDiffScalar<CwiseUnaryOp<internal::scalar_opposite_op<Scalar>, const DerTyp…
210 operator-(const Scalar& a, const AutoDiffScalar& b)
212 return AutoDiffScalar<CwiseUnaryOp<internal::scalar_opposite_op<Scalar>, const DerType> >
216 inline AutoDiffScalar& operator-=(const Scalar& other)
223 …inline const AutoDiffScalar<CwiseBinaryOp<internal::scalar_difference_op<Scalar>, const DerType,co…
224 operator-(const AutoDiffScalar<OtherDerType>& other) const
227 …return AutoDiffScalar<CwiseBinaryOp<internal::scalar_difference_op<Scalar>, const DerType,const ty…
233 inline AutoDiffScalar&
234 operator-=(const AutoDiffScalar<OtherDerType>& other)
240 inline const AutoDiffScalar<CwiseUnaryOp<internal::scalar_opposite_op<Scalar>, const DerType> >
243 return AutoDiffScalar<CwiseUnaryOp<internal::scalar_opposite_op<Scalar>, const DerType> >(
248 inline const AutoDiffScalar<CwiseUnaryOp<internal::scalar_multiple_op<Scalar>, const DerType> >
251 return AutoDiffScalar<CwiseUnaryOp<internal::scalar_multiple_op<Scalar>, const DerType> >(
256 …friend inline const AutoDiffScalar<CwiseUnaryOp<internal::scalar_multiple_op<Scalar>, const DerTyp…
257 operator*(const Scalar& other, const AutoDiffScalar& a)
259 return AutoDiffScalar<CwiseUnaryOp<internal::scalar_multiple_op<Scalar>, const DerType> >(
280 inline const AutoDiffScalar<CwiseUnaryOp<internal::scalar_multiple_op<Scalar>, const DerType> >
283 return AutoDiffScalar<CwiseUnaryOp<internal::scalar_multiple_op<Scalar>, const DerType> >(
288 …friend inline const AutoDiffScalar<CwiseUnaryOp<internal::scalar_multiple_op<Scalar>, const DerTyp…
289 operator/(const Scalar& other, const AutoDiffScalar& a)
291 return AutoDiffScalar<CwiseUnaryOp<internal::scalar_multiple_op<Scalar>, const DerType> >(
313 inline const AutoDiffScalar<CwiseUnaryOp<internal::scalar_multiple_op<Scalar>,
317 operator/(const AutoDiffScalar<OtherDerType>& other) const
320 return AutoDiffScalar<CwiseUnaryOp<internal::scalar_multiple_op<Scalar>,
330 inline const AutoDiffScalar<CwiseBinaryOp<internal::scalar_sum_op<Scalar>,
333 operator*(const AutoDiffScalar<OtherDerType>& other) const
336 return AutoDiffScalar<const CwiseBinaryOp<internal::scalar_sum_op<Scalar>,
343 inline AutoDiffScalar& operator*=(const Scalar& other)
350 inline AutoDiffScalar& operator*=(const AutoDiffScalar<OtherDerType>& other)
356 inline AutoDiffScalar& operator/=(const Scalar& other)
363 inline AutoDiffScalar& operator/=(const AutoDiffScalar<OtherDerType>& other)
396 …const AutoDiffScalar<_DerType>& derived() const { return *static_cast<const AutoDiffScalar<_DerTyp…
397 AutoDiffScalar<_DerType>& derived() { return *static_cast<AutoDiffScalar<_DerType>*>(this); }
400 inline const AutoDiffScalar<DerType&> operator+(const Real& other) const
402 return AutoDiffScalar<DerType&>(derived().value() + other, derived().derivatives());
405 …friend inline const AutoDiffScalar<DerType&> operator+(const Real& a, const AutoDiffScalar<_DerTyp…
407 return AutoDiffScalar<DerType&>(a + b.value(), b.derivatives());
410 inline AutoDiffScalar<_DerType>& operator+=(const Real& other)
417 …inline const AutoDiffScalar<typename CwiseUnaryOp<scalar_multiple2_op<Scalar,Real>, DerType>::Type…
420 return AutoDiffScalar<typename CwiseUnaryOp<scalar_multiple2_op<Scalar,Real>, DerType>::Type >(
425 …friend inline const AutoDiffScalar<typename CwiseUnaryOp<scalar_multiple2_op<Scalar,Real>, DerType…
426 operator*(const Real& other, const AutoDiffScalar<_DerType>& a)
428 return AutoDiffScalar<typename CwiseUnaryOp<scalar_multiple2_op<Scalar,Real>, DerType>::Type >(
433 inline AutoDiffScalar<_DerType>& operator*=(const Scalar& other)
507 struct scalar_product_traits<AutoDiffScalar<DerType>,typename DerType::Scalar>
510 typedef AutoDiffScalar<DerType> ReturnType;
514 struct scalar_product_traits<typename DerType::Scalar,AutoDiffScalar<DerType> >
517 typedef AutoDiffScalar<DerType> ReturnType;
524 …inline const Eigen::AutoDiffScalar<Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<typenam…
525 FUNC(const Eigen::AutoDiffScalar<DerType>& x) { \
528 …typedef AutoDiffScalar<CwiseUnaryOp<Eigen::internal::scalar_multiple_op<Scalar>, const typename Ei…
533 inline const AutoDiffScalar<DerType>& conj(const AutoDiffScalar<DerType>& x) { return x; }
535 inline const AutoDiffScalar<DerType>& real(const AutoDiffScalar<DerType>& x) { return x; }
537 inline typename DerType::Scalar imag(const AutoDiffScalar<DerType>&) { return 0.; }
539 inline AutoDiffScalar<DerType> (min)(const AutoDiffScalar<DerType>& x, const T& y) { return (x <…
541 inline AutoDiffScalar<DerType> (max)(const AutoDiffScalar<DerType>& x, const T& y) { return (x >…
543 inline AutoDiffScalar<DerType> (min)(const T& x, const AutoDiffScalar<DerType>& y) { return (x <…
545 inline AutoDiffScalar<DerType> (max)(const T& x, const AutoDiffScalar<DerType>& y) { return (x >…
580 inline const Eigen::AutoDiffScalar<Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<typename…
581 pow(const Eigen::AutoDiffScalar<DerType>& x, typename Eigen::internal::traits<DerType>::Scalar y)
585 return AutoDiffScalar<CwiseUnaryOp<Eigen::internal::scalar_multiple_op<Scalar>, const DerType> >(
592 inline const AutoDiffScalar<Matrix<typename internal::traits<DerTypeA>::Scalar,Dynamic,1> >
593 atan2(const AutoDiffScalar<DerTypeA>& a, const AutoDiffScalar<DerTypeB>& b)
598 typedef AutoDiffScalar<Matrix<Scalar,Dynamic,1> > PlainADS;
629 template<typename DerType> struct NumTraits<AutoDiffScalar<DerType> >
632 …typedef AutoDiffScalar<Matrix<typename NumTraits<typename DerType::Scalar>::Real,DerType::RowsAtCo…
633 typedef AutoDiffScalar<DerType> NonInteger;
634 typedef AutoDiffScalar<DerType>& Nested;