11#ifndef EIGEN_SELFCWISEBINARYOP_H
12#define EIGEN_SELFCWISEBINARYOP_H
15#include "./InternalHeaderCheck.h"
19template <
typename Derived>
20EIGEN_DEVICE_FUNC
constexpr EIGEN_STRONG_INLINE Derived& DenseBase<Derived>::operator*=(
const Scalar& other) {
21 using ConstantExpr =
typename internal::plain_constant_type<Derived, Scalar>::type;
22 using Op = internal::mul_assign_op<Scalar>;
23 internal::call_assignment(derived(), ConstantExpr(rows(), cols(), other), Op());
27template <
typename Derived>
28template <
bool Enable,
typename>
29EIGEN_DEVICE_FUNC
constexpr EIGEN_STRONG_INLINE Derived& DenseBase<Derived>::operator*=(
const RealScalar& other) {
34template <
typename Derived>
35EIGEN_DEVICE_FUNC
constexpr EIGEN_STRONG_INLINE Derived& DenseBase<Derived>::operator/=(
const Scalar& other) {
36 using ConstantExpr =
typename internal::plain_constant_type<Derived, Scalar>::type;
37 using Op = internal::div_assign_op<Scalar>;
38 internal::call_assignment(derived(), ConstantExpr(rows(), cols(), other), Op());
42template <
typename Derived>
43template <
bool Enable,
typename>
44EIGEN_DEVICE_FUNC
constexpr EIGEN_STRONG_INLINE Derived& DenseBase<Derived>::operator/=(
const RealScalar& other) {