SelfCwiseBinaryOp.h
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2009-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
5 //
6 // This Source Code Form is subject to the terms of the Mozilla
7 // Public License v. 2.0. If a copy of the MPL was not distributed
8 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 #ifndef EIGEN_SELFCWISEBINARYOP_H
11 #define EIGEN_SELFCWISEBINARYOP_H
12 
13 // IWYU pragma: private
14 #include "./InternalHeaderCheck.h"
15 
16 namespace Eigen {
17 
18 // TODO generalize the scalar type of 'other'
19 
20 template <typename Derived>
22  internal::call_assignment(this->derived(), PlainObject::Constant(rows(), cols(), other),
24  return derived();
25 }
26 
27 template <typename Derived>
29  internal::call_assignment(this->derived(), PlainObject::Constant(rows(), cols(), other),
31  return derived();
32 }
33 
34 template <typename Derived>
36  internal::call_assignment(this->derived(), PlainObject::Constant(rows(), cols(), other),
38  return derived();
39 }
40 
41 template <typename Derived>
43  internal::call_assignment(this->derived(), PlainObject::Constant(rows(), cols(), other),
45  return derived();
46 }
47 
48 } // end namespace Eigen
49 
50 #endif // EIGEN_SELFCWISEBINARYOP_H
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:892
#define EIGEN_STRONG_INLINE
Definition: Macros.h:834
int rows
Definition: Tutorial_commainit_02.cpp:1
int cols
Definition: Tutorial_commainit_02.cpp:1
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator+=(const Scalar &scalar)
Definition: SelfCwiseBinaryOp.h:28
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator-=(const Scalar &scalar)
Definition: SelfCwiseBinaryOp.h:35
internal::traits< Derived >::Scalar Scalar
Definition: ArrayBase.h:53
internal::traits< Derived >::Scalar Scalar
Definition: DenseBase.h:62
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator*=(const Scalar &other)
Definition: SelfCwiseBinaryOp.h:21
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator/=(const Scalar &other)
Definition: SelfCwiseBinaryOp.h:42
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_assignment(Dst &dst, const Src &src)
Definition: AssignEvaluator.h:781
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
Template functor for scalar/packet assignment with addition.
Definition: AssignmentFunctors.h:52
Template functor for scalar/packet assignment with diviving.
Definition: AssignmentFunctors.h:115
Template functor for scalar/packet assignment with multiplication.
Definition: AssignmentFunctors.h:94
Template functor for scalar/packet assignment with subtraction.
Definition: AssignmentFunctors.h:73