10#ifndef EIGEN_SELFCWISEBINARYOP_H
11#define EIGEN_SELFCWISEBINARYOP_H
15template<
typename Derived>
16inline 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>());
23template<
typename Derived>
24inline 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>());
31template<
typename Derived>
32inline 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>());
39template<
typename Derived>
40inline 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>());