11#ifndef EIGEN_EIGENBASE_H
12#define EIGEN_EIGENBASE_H
46 Derived&
derived() {
return *
static_cast<Derived*
>(
this); }
49 const Derived&
derived()
const {
return *
static_cast<const Derived*
>(
this); }
52 inline Derived& const_cast_derived()
const
53 {
return *
static_cast<Derived*
>(
const_cast<EigenBase*
>(
this)); }
55 inline const Derived& const_derived()
const
56 {
return *
static_cast<const Derived*
>(
this); }
59 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
62 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
66 EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR
70 template<
typename Dest>
72 inline void evalTo(
Dest&
dst)
const
76 template<
typename Dest>
78 inline void addTo(
Dest&
dst)
const
82 typename Dest::PlainObject res(
rows(),
cols());
88 template<
typename Dest>
90 inline void subTo(Dest& dst)
const
94 typename Dest::PlainObject res(
rows(),
cols());
100 template<
typename Dest>
101 EIGEN_DEVICE_FUNC
inline void applyThisOnTheRight(
Dest&
dst)
const
109 template<
typename Dest>
110 EIGEN_DEVICE_FUNC
inline void applyThisOnTheLeft(
Dest&
dst)
const
131template<
typename Derived>
132template<
typename OtherDerived>
136 call_assignment(derived(), other.derived());
140template<
typename Derived>
141template<
typename OtherDerived>
149template<
typename Derived>
150template<
typename OtherDerived>
152Derived& DenseBase<Derived>::operator-=(
const EigenBase<OtherDerived> &other)
154 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
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
Namespace containing all symbols from the Eigen library.
Definition LDLT.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
Common base class for all classes T such that MatrixBase has an operator=(T) and a constructor Matrix...
Definition EigenBase.h:30
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition EigenBase.h:63
Eigen::Index Index
The interface type of indices.
Definition EigenBase.h:39
EIGEN_DEVICE_FUNC const Derived & derived() const
Definition EigenBase.h:49
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index size() const EIGEN_NOEXCEPT
Definition EigenBase.h:67
EIGEN_DEVICE_FUNC Derived & derived()
Definition EigenBase.h:46
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition EigenBase.h:60
Definition AssignmentFunctors.h:46
Definition ForwardDeclarations.h:17