From 79574e384e4121f9d019400d6c7a062e944cd871 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 18 Jul 2016 12:03:05 +0200 Subject: Make scalar_product_op the default (instead of void) --- Eigen/src/Core/util/Meta.h | 61 ---------------------------------------------- 1 file changed, 61 deletions(-) (limited to 'Eigen/src/Core/util/Meta.h') diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h index dad0c1d56..e05b58def 100755 --- a/Eigen/src/Core/util/Meta.h +++ b/Eigen/src/Core/util/Meta.h @@ -435,67 +435,6 @@ T div_ceil(const T &a, const T &b) } // end namespace numext - -/** \class ScalarBinaryOpTraits - * \ingroup Core_Module - * - * \brief Determines whether the given binary operation of two numeric types is allowed and what the scalar return type is. - * - * \sa CwiseBinaryOp - */ -template -struct ScalarBinaryOpTraits -#ifndef EIGEN_PARSED_BY_DOXYGEN - // for backward compatibility, use the hints given by the (deprecated) internal::scalar_product_traits class. - : internal::scalar_product_traits -#endif // EIGEN_PARSED_BY_DOXYGEN -{}; - -template -struct ScalarBinaryOpTraits -{ - enum { Defined = 1 }; - typedef T ReturnType; -}; - -// For Matrix * Permutation -template -struct ScalarBinaryOpTraits -{ - enum { Defined = 1 }; - typedef T ReturnType; -}; - -// For Permutation * Matrix -template -struct ScalarBinaryOpTraits -{ - enum { Defined = 1 }; - typedef T ReturnType; -}; - -// for Permutation*Permutation -template -struct ScalarBinaryOpTraits -{ - enum { Defined = 1 }; - typedef void ReturnType; -}; - -template -struct ScalarBinaryOpTraits,BinaryOp> -{ - enum { Defined = 1 }; - typedef std::complex ReturnType; -}; - -template -struct ScalarBinaryOpTraits, T,BinaryOp> -{ - enum { Defined = 1 }; - typedef std::complex ReturnType; -}; - } // end namespace Eigen #endif // EIGEN_META_H -- cgit v1.2.3