11 #ifndef EIGEN_EIGENBASE_H
12 #define EIGEN_EIGENBASE_H
44 typedef typename internal::traits<Derived>::StorageKind
StorageKind;
48 Derived&
derived() {
return *
static_cast<Derived*
>(
this); }
51 const Derived&
derived()
const {
return *
static_cast<const Derived*
>(
this); }
55 {
return *
static_cast<Derived*
>(
const_cast<EigenBase*
>(
this)); }
58 {
return *
static_cast<const Derived*
>(
this); }
72 template<
typename Dest>
78 template<
typename Dest>
80 inline void addTo(Dest& dst)
const
90 template<
typename Dest>
92 inline void subTo(Dest& dst)
const
102 template<
typename Dest>
111 template<
typename Dest>
133 template<
typename Derived>
134 template<
typename OtherDerived>
142 template<
typename Derived>
143 template<
typename OtherDerived>
147 call_assignment(derived(), other.
derived(), internal::add_assign_op<Scalar,typename OtherDerived::Scalar>());
151 template<
typename Derived>
152 template<
typename OtherDerived>
156 call_assignment(derived(), other.
derived(), internal::sub_assign_op<Scalar,typename OtherDerived::Scalar>());
#define EIGEN_DEVICE_FUNC
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Derived & operator+=(const EigenBase< OtherDerived > &other)
Derived & operator=(const DenseBase< OtherDerived > &other)
Derived & operator-=(const EigenBase< OtherDerived > &other)
void call_assignment(Dst &dst, const Src &src)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
void evalTo(Dest &dst) const
Eigen::Index Index
The interface type of indices.
void applyThisOnTheRight(Dest &dst) const
internal::traits< Derived >::StorageKind StorageKind
void addTo(Dest &dst) const
const Derived & const_derived() const
EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
void subTo(Dest &dst) const
Derived & const_cast_derived() const
EIGEN_CONSTEXPR Index size() const EIGEN_NOEXCEPT
void applyThisOnTheLeft(Dest &dst) const
const Derived & derived() const