10 #ifndef EIGEN_AUTODIFF_VECTOR_H
11 #define EIGEN_AUTODIFF_VECTOR_H
35 template <
typename ValueType,
typename JacobianType>
67 template <
typename OtherValueType,
typename OtherJacobianType>
73 template <
typename OtherValueType,
typename OtherJacobianType>
92 template <
typename OtherValueType,
typename OtherJacobianType>
94 typename MakeCwiseBinaryOp<internal::scalar_sum_op<BaseScalar>, ValueType, OtherValueType>
::Type,
95 typename MakeCwiseBinaryOp<internal::scalar_sum_op<BaseScalar>, JacobianType, OtherJacobianType>
::Type>
98 typename MakeCwiseBinaryOp<internal::scalar_sum_op<BaseScalar>, ValueType, OtherValueType>
::Type,
99 typename MakeCwiseBinaryOp<internal::scalar_sum_op<BaseScalar>, JacobianType, OtherJacobianType>
::Type>(
103 template <
typename OtherValueType,
typename OtherJacobianType>
110 template <
typename OtherValueType,
typename OtherJacobianType>
112 typename MakeCwiseBinaryOp<internal::scalar_difference_op<Scalar>, ValueType, OtherValueType>
::Type,
113 typename MakeCwiseBinaryOp<internal::scalar_difference_op<Scalar>, JacobianType, OtherJacobianType>
::Type>
116 typename MakeCwiseBinaryOp<internal::scalar_difference_op<Scalar>, ValueType, OtherValueType>
::Type,
117 typename MakeCwiseBinaryOp<internal::scalar_difference_op<Scalar>, JacobianType, OtherJacobianType>
::Type>(
121 template <
typename OtherValueType,
typename OtherJacobianType>
129 typename MakeCwiseUnaryOp<internal::scalar_opposite_op<Scalar>, JacobianType>
::Type>
132 typename MakeCwiseUnaryOp<internal::scalar_opposite_op<Scalar>, JacobianType>
::Type>(
137 typename MakeCwiseUnaryOp<internal::scalar_multiple_op<Scalar>, JacobianType>
::Type>
140 typename MakeCwiseUnaryOp<internal::scalar_multiple_op<Scalar>, JacobianType>
::Type>(
145 typename MakeCwiseUnaryOp<internal::scalar_multiple_op<Scalar>, ValueType>
::Type,
146 typename MakeCwiseUnaryOp<internal::scalar_multiple_op<Scalar>, JacobianType>
::Type>
149 typename MakeCwiseUnaryOp<internal::scalar_multiple_op<Scalar>, JacobianType>
::Type>(
150 v.values() * other,
v.jacobian() * other);
176 template <
typename OtherValueType,
typename OtherJacobianType>
178 *
this = *
this * other;
Array< int, Dynamic, 1 > v
Definition: Array_initializer_list_vector_cxx11.cpp:1
int i
Definition: BiCGSTAB_step_by_step.cpp:9
A scalar type replacement with automatic differentiation capability.
Definition: AutoDiffScalar.h:99
Definition: AutoDiffVector.h:36
AutoDiffVector & operator=(const AutoDiffVector< OtherValueType, OtherJacobianType > &other)
Definition: AutoDiffVector.h:74
JacobianType & jacobian()
Definition: AutoDiffVector.h:90
Index size() const
Definition: AutoDiffVector.h:58
AutoDiffVector & operator+=(const AutoDiffVector< OtherValueType, OtherJacobianType > &other)
Definition: AutoDiffVector.h:104
ValueType m_values
Definition: AutoDiffVector.h:183
friend const AutoDiffVector< typename MakeCwiseUnaryOp< internal::scalar_multiple_op< Scalar >, ValueType >::Type, typename MakeCwiseUnaryOp< internal::scalar_multiple_op< Scalar >, JacobianType >::Type > operator*(const Scalar &other, const AutoDiffVector &v)
Definition: AutoDiffVector.h:147
const AutoDiffVector< typename MakeCwiseUnaryOp< internal::scalar_opposite_op< Scalar >, ValueType >::Type, typename MakeCwiseUnaryOp< internal::scalar_opposite_op< Scalar >, JacobianType >::Type > operator-() const
Definition: AutoDiffVector.h:130
AutoDiffVector & operator=(const AutoDiffVector &other)
Definition: AutoDiffVector.h:80
AutoDiffScalar< typename JacobianType::ColXpr > CoeffType
Definition: AutoDiffVector.h:42
CoeffType coeffRef(Index i)
Definition: AutoDiffVector.h:55
AutoDiffVector(const ValueType &values)
Definition: AutoDiffVector.h:47
CoeffType operator[](Index i)
Definition: AutoDiffVector.h:49
JacobianType::Index Index
Definition: AutoDiffVector.h:43
const CoeffType operator[](Index i) const
Definition: AutoDiffVector.h:50
AutoDiffVector()
Definition: AutoDiffVector.h:45
AutoDiffVector(const ValueType &values, const JacobianType &jac)
Definition: AutoDiffVector.h:65
internal::traits< ValueType >::Scalar BaseScalar
Definition: AutoDiffVector.h:39
const CoeffType coeffRef(Index i) const
Definition: AutoDiffVector.h:56
const CoeffType operator()(Index i) const
Definition: AutoDiffVector.h:53
const AutoDiffVector< typename MakeCwiseBinaryOp< internal::scalar_sum_op< BaseScalar >, ValueType, OtherValueType >::Type, typename MakeCwiseBinaryOp< internal::scalar_sum_op< BaseScalar >, JacobianType, OtherJacobianType >::Type > operator+(const AutoDiffVector< OtherValueType, OtherJacobianType > &other) const
Definition: AutoDiffVector.h:96
AutoDiffVector(const AutoDiffVector &other)
Definition: AutoDiffVector.h:71
AutoDiffVector & operator-=(const AutoDiffVector< OtherValueType, OtherJacobianType > &other)
Definition: AutoDiffVector.h:122
AutoDiffScalar< Matrix< BaseScalar, JacobianType::RowsAtCompileTime, 1 > > ActiveScalar
Definition: AutoDiffVector.h:40
const ValueType & values() const
Definition: AutoDiffVector.h:86
AutoDiffVector & operator*=(const Scalar &other)
Definition: AutoDiffVector.h:170
AutoDiffVector & operator*=(const AutoDiffVector< OtherValueType, OtherJacobianType > &other)
Definition: AutoDiffVector.h:177
AutoDiffVector(const AutoDiffVector< OtherValueType, OtherJacobianType > &other)
Definition: AutoDiffVector.h:68
const JacobianType & jacobian() const
Definition: AutoDiffVector.h:89
const AutoDiffVector< typename MakeCwiseBinaryOp< internal::scalar_difference_op< Scalar >, ValueType, OtherValueType >::Type, typename MakeCwiseBinaryOp< internal::scalar_difference_op< Scalar >, JacobianType, OtherJacobianType >::Type > operator-(const AutoDiffVector< OtherValueType, OtherJacobianType > &other) const
Definition: AutoDiffVector.h:114
CoeffType operator()(Index i)
Definition: AutoDiffVector.h:52
ValueType & values()
Definition: AutoDiffVector.h:87
ActiveScalar Scalar
Definition: AutoDiffVector.h:41
JacobianType m_jacobian
Definition: AutoDiffVector.h:184
Scalar sum() const
Definition: AutoDiffVector.h:61
const AutoDiffVector< typename MakeCwiseUnaryOp< internal::scalar_multiple_op< Scalar >, ValueType >::Type, typename MakeCwiseUnaryOp< internal::scalar_multiple_op< Scalar >, JacobianType >::Type > operator*(const BaseScalar &other) const
Definition: AutoDiffVector.h:138
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
Type
Type of JSON value.
Definition: rapidjson.h:513
Definition: ForwardDeclarations.h:21