10 #ifndef EIGEN_SELFCWISEBINARYOP_H
11 #define EIGEN_SELFCWISEBINARYOP_H
15 template<
typename Derived>
16 inline Derived& DenseBase<Derived>::operator*=(
const Scalar& other)
18 typedef typename Derived::PlainObject PlainObject;
19 internal::call_assignment(this->derived(), PlainObject::Constant(rows(),cols(),other), internal::mul_assign_op<Scalar>());
23 template<
typename Derived>
24 inline Derived& ArrayBase<Derived>::operator+=(
const Scalar& other)
26 typedef typename Derived::PlainObject PlainObject;
27 internal::call_assignment(this->derived(), PlainObject::Constant(rows(),cols(),other), internal::add_assign_op<Scalar>());
31 template<
typename Derived>
32 inline Derived& ArrayBase<Derived>::operator-=(
const Scalar& other)
34 typedef typename Derived::PlainObject PlainObject;
35 internal::call_assignment(this->derived(), PlainObject::Constant(rows(),cols(),other), internal::sub_assign_op<Scalar>());
39 template<
typename Derived>
40 inline Derived& DenseBase<Derived>::operator/=(
const Scalar& other)
42 typedef typename Derived::PlainObject PlainObject;
43 internal::call_assignment(this->derived(), PlainObject::Constant(rows(),cols(),other), internal::div_assign_op<Scalar>());
49 #endif // EIGEN_SELFCWISEBINARYOP_H