Inherits Eigen::internal::auto_diff_special_op< DerivativeType, !internal::is_same< internal::traits< internal::remove_all_t< DerivativeType > >::Scalar, NumTraits< internal::traits< internal::remove_all_t< DerivativeType > >::Scalar >::Real >::value >.
|
| AutoDiffScalar () |
|
| AutoDiffScalar (const AutoDiffScalar &other) |
|
template<typename OtherDerType > |
| AutoDiffScalar (const AutoDiffScalar< OtherDerType > &other) |
|
| AutoDiffScalar (const Real &value) |
|
| AutoDiffScalar (const Scalar &value, const DerType &der) |
|
| AutoDiffScalar (const Scalar &value, int nbDer, int derNumber) |
|
DerType & | derivatives () |
|
const DerType & | derivatives () const |
|
template<typename OtherDerType > |
bool | operator!= (const AutoDiffScalar< OtherDerType > &b) const |
|
bool | operator!= (const Scalar &other) const |
|
template<typename OtherDerType > |
AutoDiffScalar< CwiseBinaryOp< internal::scalar_sum_op< Scalar >, const EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(DerType, Scalar, product), const EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(internal::remove_all_t< OtherDerType >, Scalar, product) > > | operator* (const AutoDiffScalar< OtherDerType > &other) const |
|
AutoDiffScalar< EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(DerType, Scalar, product) > | operator* (const Scalar &other) const |
|
template<typename OtherDerType > |
AutoDiffScalar & | operator*= (const AutoDiffScalar< OtherDerType > &other) |
|
AutoDiffScalar & | operator*= (const Scalar &other) |
|
template<typename OtherDerType > |
AutoDiffScalar< CwiseBinaryOp< internal::scalar_sum_op< Scalar >, const DerType, const internal::remove_all_t< OtherDerType > > > | operator+ (const AutoDiffScalar< OtherDerType > &other) const |
|
AutoDiffScalar< DerType & > | operator+ (const Scalar &other) const |
|
template<typename OtherDerType > |
AutoDiffScalar & | operator+= (const AutoDiffScalar< OtherDerType > &other) |
|
AutoDiffScalar & | operator+= (const Scalar &other) |
|
AutoDiffScalar< CwiseUnaryOp< internal::scalar_opposite_op< Scalar >, const DerType > > | operator- () const |
|
template<typename OtherDerType > |
AutoDiffScalar< CwiseBinaryOp< internal::scalar_difference_op< Scalar >, const DerType, const internal::remove_all_t< OtherDerType > > > | operator- (const AutoDiffScalar< OtherDerType > &other) const |
|
AutoDiffScalar< DerType & > | operator- (const Scalar &b) const |
|
template<typename OtherDerType > |
AutoDiffScalar & | operator-= (const AutoDiffScalar< OtherDerType > &other) |
|
AutoDiffScalar & | operator-= (const Scalar &other) |
|
template<typename OtherDerType > |
AutoDiffScalar< EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(CwiseBinaryOp< internal::scalar_difference_op< Scalar > EIGEN_COMMA const EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(DerType, Scalar, product) EIGEN_COMMA const EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(internal::remove_all_t< OtherDerType >, Scalar, product) >, Scalar, product) > | operator/ (const AutoDiffScalar< OtherDerType > &other) const |
|
AutoDiffScalar< EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(DerType, Scalar, product) > | operator/ (const Scalar &other) const |
|
template<typename OtherDerType > |
AutoDiffScalar & | operator/= (const AutoDiffScalar< OtherDerType > &other) |
|
AutoDiffScalar & | operator/= (const Scalar &other) |
|
template<typename OtherDerType > |
bool | operator< (const AutoDiffScalar< OtherDerType > &b) const |
|
bool | operator< (const Scalar &other) const |
|
template<typename OtherDerType > |
bool | operator<= (const AutoDiffScalar< OtherDerType > &b) const |
|
bool | operator<= (const Scalar &other) const |
|
AutoDiffScalar & | operator= (const AutoDiffScalar &other) |
|
template<typename OtherDerType > |
AutoDiffScalar & | operator= (const AutoDiffScalar< OtherDerType > &other) |
|
AutoDiffScalar & | operator= (const Scalar &other) |
|
template<typename OtherDerType > |
bool | operator== (const AutoDiffScalar< OtherDerType > &b) const |
|
bool | operator== (const Scalar &other) const |
|
template<typename OtherDerType > |
bool | operator> (const AutoDiffScalar< OtherDerType > &b) const |
|
bool | operator> (const Scalar &other) const |
|
template<typename OtherDerType > |
bool | operator>= (const AutoDiffScalar< OtherDerType > &b) const |
|
bool | operator>= (const Scalar &other) const |
|
Scalar & | value () |
|
const Scalar & | value () const |
|
template<typename DerivativeType>
class Eigen::AutoDiffScalar< DerivativeType >
A scalar type replacement with automatic differentiation capability.
- Parameters
-
DerivativeType | the vector type used to store/represent the derivatives. The base scalar type as well as the number of derivatives to compute are determined from this type. Typical choices include, e.g., Vector4f for 4 derivatives, or VectorXf if the number of derivatives is not known at compile time, and/or, the number of derivatives is large. Note that DerivativeType can also be a reference (e.g., VectorXf& ) to wrap a existing vector into an AutoDiffScalar. Finally, DerivativeType can also be any Eigen compatible expression. |
This class represents a scalar value while tracking its respective derivatives using Eigen's expression template mechanism.
It supports the following list of global math function:
- std::abs, std::sqrt, std::pow, std::exp, std::log, std::sin, std::cos,
- internal::abs, internal::sqrt, numext::pow, internal::exp, internal::log, internal::sin, internal::cos,
- internal::conj, internal::real, internal::imag, numext::abs2.
AutoDiffScalar can be used as the scalar type of an Eigen::Matrix object. However, in that case, the expression template mechanism only occurs at the top Matrix level, while derivatives are computed right away.
Definition at line 69 of file AutoDiffScalar.h.