11#ifndef EIGEN_EIGENBASE_H
12#define EIGEN_EIGENBASE_H
40 typedef typename internal::traits<Derived>::StorageKind StorageKind;
44 Derived&
derived() {
return *
static_cast<Derived*
>(
this); }
47 const Derived&
derived()
const {
return *
static_cast<const Derived*
>(
this); }
50 inline Derived& const_cast_derived()
const
51 {
return *
static_cast<Derived*
>(
const_cast<EigenBase*
>(
this)); }
53 inline const Derived& const_derived()
const
54 {
return *
static_cast<const Derived*
>(
this); }
68 template<
typename Dest>
70 inline void evalTo(Dest& dst)
const
74 template<
typename Dest>
76 inline void addTo(Dest& dst)
const
80 typename Dest::PlainObject res(
rows(),
cols());
86 template<
typename Dest>
88 inline void subTo(Dest& dst)
const
92 typename Dest::PlainObject res(
rows(),
cols());
98 template<
typename Dest>
99 EIGEN_DEVICE_FUNC
inline void applyThisOnTheRight(Dest& dst)
const
107 template<
typename Dest>
108 EIGEN_DEVICE_FUNC
inline void applyThisOnTheLeft(Dest& dst)
const
129template<
typename Derived>
130template<
typename OtherDerived>
133 call_assignment(derived(), other.
derived());
137template<
typename Derived>
138template<
typename OtherDerived>
141 call_assignment(derived(), other.
derived(), internal::add_assign_op<Scalar,typename OtherDerived::Scalar>());
145template<
typename Derived>
146template<
typename OtherDerived>
147Derived& DenseBase<Derived>::operator-=(
const EigenBase<OtherDerived> &other)
149 call_assignment(derived(), other.derived(), internal::sub_assign_op<Scalar,typename OtherDerived::Scalar>());
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:47
Namespace containing all symbols from the Eigen library.
Definition: Core:287
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
Definition: EigenBase.h:29
Index cols() const
Definition: EigenBase.h:61
Eigen::Index Index
The interface type of indices.
Definition: EigenBase.h:37
Derived & derived()
Definition: EigenBase.h:44
Index rows() const
Definition: EigenBase.h:58
Index size() const
Definition: EigenBase.h:65
const Derived & derived() const
Definition: EigenBase.h:47