diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-06-10 15:58:33 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-06-10 15:58:33 +0200 |
commit | fabae6c9a180669f6afbd732ee6973311a36476c (patch) | |
tree | 524cfdd5ced099a051c8ed24d2ad3eed5ec5fad9 /Eigen/src/plugins/ArrayCwiseBinaryOps.h | |
parent | 5de8d7036b8b48bc4986d96f677c77eb466ce02b (diff) |
Cleanup
Diffstat (limited to 'Eigen/src/plugins/ArrayCwiseBinaryOps.h')
-rw-r--r-- | Eigen/src/plugins/ArrayCwiseBinaryOps.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Eigen/src/plugins/ArrayCwiseBinaryOps.h b/Eigen/src/plugins/ArrayCwiseBinaryOps.h index da47a7ed7..7f7d0dbf4 100644 --- a/Eigen/src/plugins/ArrayCwiseBinaryOps.h +++ b/Eigen/src/plugins/ArrayCwiseBinaryOps.h @@ -81,16 +81,8 @@ max * Example: \include Cwise_array_power_array.cpp * Output: \verbinclude Cwise_array_power_array.out */ -template<typename ExponentDerived> -EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE -const CwiseBinaryOp<internal::scalar_binary_pow_op<Scalar, typename ExponentDerived::Scalar>, const Derived, const ExponentDerived> -pow(const ArrayBase<ExponentDerived>& exponents) const -{ - return CwiseBinaryOp<internal::scalar_binary_pow_op<Scalar, typename ExponentDerived::Scalar>, const Derived, const ExponentDerived>( - this->derived(), - exponents.derived() - ); -} +EIGEN_MAKE_CWISE_BINARY_OP(pow,binary_pow) + // TODO code generating macros could be moved to Macros.h and could include generation of documentation #define EIGEN_MAKE_CWISE_COMP_OP(OP, COMPARATOR) \ |