diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-06-19 17:06:12 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-06-19 17:06:12 +0200 |
commit | 6fc54382058350a4247989f82f3ad1af1ba41d7d (patch) | |
tree | 0edcfab34331adc6f9fd445871510e7958114a1c /Eigen | |
parent | e9edb085c0d0d2a900f630b3345408f29ff032bd (diff) |
Remove a few deprecated internal expressions
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/Core | 1 | ||||
-rw-r--r-- | Eigen/src/Core/MatrixBase.h | 4 | ||||
-rw-r--r-- | Eigen/src/Core/ProductBase.h | 27 | ||||
-rw-r--r-- | Eigen/src/Core/ProductEvaluators.h | 4 | ||||
-rw-r--r-- | Eigen/src/Core/Transpose.h | 8 | ||||
-rw-r--r-- | Eigen/src/Core/products/GeneralMatrixMatrix.h | 7 | ||||
-rw-r--r-- | Eigen/src/Core/util/Constants.h | 2 | ||||
-rw-r--r-- | Eigen/src/Core/util/ForwardDeclarations.h | 5 |
8 files changed, 4 insertions, 54 deletions
diff --git a/Eigen/Core b/Eigen/Core index 80d7c1a69..de94b5b75 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -377,7 +377,6 @@ using std::ptrdiff_t; #include "src/Core/IO.h" #include "src/Core/Swap.h" #include "src/Core/CommaInitializer.h" -#include "src/Core/ProductBase.h" #include "src/Core/GeneralProduct.h" #include "src/Core/Solve.h" #include "src/Core/Inverse.h" diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h index 81b900eee..1686933e4 100644 --- a/Eigen/src/Core/MatrixBase.h +++ b/Eigen/src/Core/MatrixBase.h @@ -164,10 +164,6 @@ template<typename Derived> class MatrixBase EIGEN_DEVICE_FUNC Derived& operator=(const ReturnByValue<OtherDerived>& other); - template<typename ProductDerived, typename Lhs, typename Rhs> - EIGEN_DEVICE_FUNC - Derived& lazyAssign(const ProductBase<ProductDerived, Lhs,Rhs>& other); - template<typename OtherDerived> EIGEN_DEVICE_FUNC Derived& operator+=(const MatrixBase<OtherDerived>& other); diff --git a/Eigen/src/Core/ProductBase.h b/Eigen/src/Core/ProductBase.h deleted file mode 100644 index 050343b2d..000000000 --- a/Eigen/src/Core/ProductBase.h +++ /dev/null @@ -1,27 +0,0 @@ -// This file is part of Eigen, a lightweight C++ template library -// for linear algebra. -// -// Copyright (C) 2009-2010 Gael Guennebaud <gael.guennebaud@inria.fr> -// -// This Source Code Form is subject to the terms of the Mozilla -// Public License v. 2.0. If a copy of the MPL was not distributed -// with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - -#ifndef EIGEN_PRODUCTBASE_H -#define EIGEN_PRODUCTBASE_H - -namespace Eigen { - -/** \internal - * Overloaded to perform an efficient C = (A*B).lazy() */ -template<typename Derived> -template<typename ProductDerived, typename Lhs, typename Rhs> -Derived& MatrixBase<Derived>::lazyAssign(const ProductBase<ProductDerived, Lhs,Rhs>& other) -{ - other.derived().evalTo(derived()); - return derived(); -} - -} // end namespace Eigen - -#endif // EIGEN_PRODUCTBASE_H diff --git a/Eigen/src/Core/ProductEvaluators.h b/Eigen/src/Core/ProductEvaluators.h index 3cf7c0e16..ee87da66d 100644 --- a/Eigen/src/Core/ProductEvaluators.h +++ b/Eigen/src/Core/ProductEvaluators.h @@ -109,7 +109,6 @@ struct product_evaluator<Product<Lhs, Rhs, Options>, ProductTag, LhsShape, RhsSh typedef typename evaluator<PlainObject>::type Base; enum { Flags = Base::Flags | EvalBeforeNestingBit -// CoeffReadCost = 0 // FIXME why is it needed? (this was already the case before the evaluators, see traits<ProductBase>) }; EIGEN_DEVICE_FUNC explicit product_evaluator(const XprType& xpr) @@ -117,7 +116,8 @@ struct product_evaluator<Product<Lhs, Rhs, Options>, ProductTag, LhsShape, RhsSh { ::new (static_cast<Base*>(this)) Base(m_result); -// FIXME shall we handle nested_eval here? +// FIXME shall we handle nested_eval here?, +// if so, then we must take care at removing the call to nested_eval in the specializations (e.g., in permutation_matrix_product, transposition_matrix_product, etc.) // typedef typename internal::nested_eval<Lhs,Rhs::ColsAtCompileTime>::type LhsNested; // typedef typename internal::nested_eval<Rhs,Lhs::RowsAtCompileTime>::type RhsNested; // typedef typename internal::remove_all<LhsNested>::type LhsNestedCleaned; diff --git a/Eigen/src/Core/Transpose.h b/Eigen/src/Core/Transpose.h index 7221ee03e..576411600 100644 --- a/Eigen/src/Core/Transpose.h +++ b/Eigen/src/Core/Transpose.h @@ -317,14 +317,6 @@ inline void MatrixBase<Derived>::adjointInPlace() namespace internal { -template<typename BinOp,typename NestedXpr,typename Rhs> -struct blas_traits<SelfCwiseBinaryOp<BinOp,NestedXpr,Rhs> > - : blas_traits<NestedXpr> -{ - typedef SelfCwiseBinaryOp<BinOp,NestedXpr,Rhs> XprType; - static inline const XprType extract(const XprType& x) { return x; } -}; - template<bool DestIsTransposed, typename OtherDerived> struct check_transpose_aliasing_compile_time_selector { diff --git a/Eigen/src/Core/products/GeneralMatrixMatrix.h b/Eigen/src/Core/products/GeneralMatrixMatrix.h index 7fd707ed7..e2d6a8ba2 100644 --- a/Eigen/src/Core/products/GeneralMatrixMatrix.h +++ b/Eigen/src/Core/products/GeneralMatrixMatrix.h @@ -204,15 +204,10 @@ static void run(Index rows, Index cols, Index depth, }; /********************************************************************************* -* Specialization of GeneralProduct<> for "large" GEMM, i.e., +* Specialization of generic_product_impl for "large" GEMM, i.e., * implementation of the high level wrapper to general_matrix_matrix_product **********************************************************************************/ -template<typename Lhs, typename Rhs> -struct traits<GeneralProduct<Lhs,Rhs,GemmProduct> > - : traits<ProductBase<GeneralProduct<Lhs,Rhs,GemmProduct>, Lhs, Rhs> > -{}; - template<typename Scalar, typename Index, typename Gemm, typename Lhs, typename Rhs, typename Dest, typename BlockingType> struct gemm_functor { diff --git a/Eigen/src/Core/util/Constants.h b/Eigen/src/Core/util/Constants.h index c5a0b0930..93c0786fa 100644 --- a/Eigen/src/Core/util/Constants.h +++ b/Eigen/src/Core/util/Constants.h @@ -452,7 +452,7 @@ namespace Architecture } /** \internal \ingroup enums - * Enum used as template parameter in GeneralProduct. */ + * Enum used as template parameter in Product and product evalautors. */ enum { DefaultProduct=0, LazyProduct, AliasFreeProduct, CoeffBasedProductMode, LazyCoeffBasedProductMode, OuterProduct, InnerProduct, GemvProduct, GemmProduct }; /** \internal \ingroup enums diff --git a/Eigen/src/Core/util/ForwardDeclarations.h b/Eigen/src/Core/util/ForwardDeclarations.h index b5ad2c6f2..c287c1023 100644 --- a/Eigen/src/Core/util/ForwardDeclarations.h +++ b/Eigen/src/Core/util/ForwardDeclarations.h @@ -91,8 +91,6 @@ template<typename NullaryOp, typename MatrixType> class CwiseNullaryOp; template<typename UnaryOp, typename MatrixType> class CwiseUnaryOp; template<typename ViewOp, typename MatrixType> class CwiseUnaryView; template<typename BinaryOp, typename Lhs, typename Rhs> class CwiseBinaryOp; -template<typename BinOp, typename Lhs, typename Rhs> class SelfCwiseBinaryOp; // TODO deprecated -template<typename Derived, typename Lhs, typename Rhs> class ProductBase; // TODO deprecated template<typename Decomposition, typename Rhstype> class Solve; template<typename XprType> class Inverse; @@ -102,9 +100,6 @@ namespace internal { template<typename Lhs, typename Rhs, int Option = DefaultProduct> class Product; -template<typename Lhs, typename Rhs, int Mode> class GeneralProduct; // TODO deprecated -template<typename Lhs, typename Rhs, int NestingFlags> class CoeffBasedProduct; // TODO deprecated - template<typename Derived> class DiagonalBase; template<typename _DiagonalVectorType> class DiagonalWrapper; template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime=SizeAtCompileTime> class DiagonalMatrix; |