11 #ifndef EIGEN_EIGENBASE_H 12 #define EIGEN_EIGENBASE_H 41 typedef typename internal::traits<Derived>::StorageKind StorageKind;
45 Derived&
derived() {
return *
static_cast<Derived*
>(
this); }
48 const Derived&
derived()
const {
return *
static_cast<const Derived*
>(
this); }
51 inline Derived& const_cast_derived()
const 52 {
return *
static_cast<Derived*
>(
const_cast<EigenBase*
>(
this)); }
54 inline const Derived& const_derived()
const 55 {
return *
static_cast<const Derived*
>(
this); }
69 template<
typename Dest>
71 inline void evalTo(Dest& dst)
const 75 template<
typename Dest>
77 inline void addTo(Dest& dst)
const 81 typename Dest::PlainObject res(
rows(),
cols());
87 template<
typename Dest>
89 inline void subTo(Dest& dst)
const 93 typename Dest::PlainObject res(
rows(),
cols());
99 template<
typename Dest>
100 EIGEN_DEVICE_FUNC
inline void applyThisOnTheRight(Dest& dst)
const 108 template<
typename Dest>
109 EIGEN_DEVICE_FUNC
inline void applyThisOnTheLeft(Dest& dst)
const 130 template<
typename Derived>
131 template<
typename OtherDerived>
139 template<
typename Derived>
140 template<
typename OtherDerived>
144 call_assignment(
derived(), other.
derived(), internal::add_assign_op<Scalar,typename OtherDerived::Scalar>());
148 template<
typename Derived>
149 template<
typename OtherDerived>
153 call_assignment(
derived(), other.
derived(), internal::sub_assign_op<Scalar,typename OtherDerived::Scalar>());
159 #endif // EIGEN_EIGENBASE_H Namespace containing all symbols from the Eigen library.
Definition: Core:287
Derived & operator=(const DenseBase< OtherDerived > &other)
Definition: Assign.h:39
Derived & derived()
Definition: EigenBase.h:45
Eigen::Index Index
The interface type of indices.
Definition: EigenBase.h:38
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:41
Definition: EigenBase.h:29
Index size() const
Definition: EigenBase.h:66
Index rows() const
Definition: EigenBase.h:59
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
const Derived & derived() const
Definition: EigenBase.h:48
Index cols() const
Definition: EigenBase.h:62