diff --git a/Eigen/src/Array/Array.h b/Eigen/src/Array/Array.h index fc8c500c2..2f155aeeb 100644 --- a/Eigen/src/Array/Array.h +++ b/Eigen/src/Array/Array.h @@ -189,11 +189,6 @@ class Array other.evalTo(*this); } -// template -// Array& lazyAssign(const ArrayBase& other); -// template -// Array& lazyAssign(const MatrixBase& other); - /** \sa MatrixBase::operator=(const AnyMatrixBase&) */ template EIGEN_STRONG_INLINE Array(const AnyMatrixBase &other) diff --git a/Eigen/src/Array/Replicate.h b/Eigen/src/Array/Replicate.h index b17c13aa6..5a9b10738 100644 --- a/Eigen/src/Array/Replicate.h +++ b/Eigen/src/Array/Replicate.h @@ -40,6 +40,7 @@ */ template struct ei_traits > + : ei_traits { typedef typename MatrixType::Scalar Scalar; typedef typename ei_traits::StorageType StorageType; diff --git a/Eigen/src/Array/Reverse.h b/Eigen/src/Array/Reverse.h index 44380eb48..a8d8310a9 100644 --- a/Eigen/src/Array/Reverse.h +++ b/Eigen/src/Array/Reverse.h @@ -43,6 +43,7 @@ */ template struct ei_traits > + : ei_traits { typedef typename MatrixType::Scalar Scalar; typedef typename ei_traits::StorageType StorageType; diff --git a/Eigen/src/Array/Select.h b/Eigen/src/Array/Select.h index a776bf40a..1983bd870 100644 --- a/Eigen/src/Array/Select.h +++ b/Eigen/src/Array/Select.h @@ -43,6 +43,7 @@ template struct ei_traits > + : ei_traits { typedef typename ei_traits::Scalar Scalar; typedef Dense StorageType; diff --git a/Eigen/src/Array/VectorwiseOp.h b/Eigen/src/Array/VectorwiseOp.h index a409d4dc6..f6774a019 100644 --- a/Eigen/src/Array/VectorwiseOp.h +++ b/Eigen/src/Array/VectorwiseOp.h @@ -48,6 +48,7 @@ class PartialReduxExpr; template struct ei_traits > + : ei_traits { typedef typename MemberOp::result_type Scalar; typedef typename ei_traits::StorageType StorageType; diff --git a/Eigen/src/Core/DenseStorageBase.h b/Eigen/src/Core/DenseStorageBase.h index b9257156e..ed116d708 100644 --- a/Eigen/src/Core/DenseStorageBase.h +++ b/Eigen/src/Core/DenseStorageBase.h @@ -546,7 +546,7 @@ struct ei_conservative_resize_like_impl EIGEN_STATIC_ASSERT_DYNAMIC_SIZE(Derived) EIGEN_STATIC_ASSERT_DYNAMIC_SIZE(OtherDerived) - typename DenseBase::PlainMatrixType tmp(other); + typename Derived::PlainMatrixType tmp(other); const int common_rows = std::min(tmp.rows(), _this.rows()); const int common_cols = std::min(tmp.cols(), _this.cols()); tmp.block(0,0,common_rows,common_cols) = _this.block(0,0,common_rows,common_cols); @@ -562,7 +562,7 @@ struct ei_conservative_resize_like_impl if (_this.rows() == other.rows() && _this.cols() == other.cols()) return; // segment(...) will check whether Derived/OtherDerived are vectors! - typename DenseBase::PlainMatrixType tmp(other); + typename Derived::PlainMatrixType tmp(other); const int common_size = std::min(_this.size(),tmp.size()); tmp.segment(0,common_size) = _this.segment(0,common_size); _this.derived().swap(tmp); diff --git a/Eigen/src/Core/Diagonal.h b/Eigen/src/Core/Diagonal.h index 25aa9cd4c..344dbca40 100644 --- a/Eigen/src/Core/Diagonal.h +++ b/Eigen/src/Core/Diagonal.h @@ -44,9 +44,8 @@ */ template struct ei_traits > + : ei_traits { - typedef typename MatrixType::Scalar Scalar; - typedef typename ei_traits::StorageType StorageType; typedef typename ei_nested::type MatrixTypeNested; typedef typename ei_unref::type _MatrixTypeNested; enum { diff --git a/Eigen/src/Core/DiagonalProduct.h b/Eigen/src/Core/DiagonalProduct.h index 42e2e948d..87068d9ba 100644 --- a/Eigen/src/Core/DiagonalProduct.h +++ b/Eigen/src/Core/DiagonalProduct.h @@ -28,9 +28,9 @@ template struct ei_traits > + : ei_traits { typedef typename ei_scalar_product_traits::ReturnType Scalar; - typedef typename ei_traits::StorageType StorageType; enum { RowsAtCompileTime = MatrixType::RowsAtCompileTime, ColsAtCompileTime = MatrixType::ColsAtCompileTime, diff --git a/Eigen/src/Core/Minor.h b/Eigen/src/Core/Minor.h index 1db60b002..3ed0fec6b 100644 --- a/Eigen/src/Core/Minor.h +++ b/Eigen/src/Core/Minor.h @@ -40,9 +40,8 @@ */ template struct ei_traits > + : ei_traits { - typedef typename MatrixType::Scalar Scalar; - typedef typename ei_traits::StorageType StorageType; typedef typename ei_nested::type MatrixTypeNested; typedef typename ei_unref::type _MatrixTypeNested; enum { diff --git a/Eigen/src/Core/ProductBase.h b/Eigen/src/Core/ProductBase.h index 2df864458..d835f16b7 100644 --- a/Eigen/src/Core/ProductBase.h +++ b/Eigen/src/Core/ProductBase.h @@ -29,7 +29,7 @@ * */ template -struct ei_traits > +struct ei_traits > : ei_traits::type> { typedef typename ei_cleantype<_Lhs>::type Lhs; typedef typename ei_cleantype<_Rhs>::type Rhs; diff --git a/Eigen/src/Core/Transpose.h b/Eigen/src/Core/Transpose.h index b202f62c4..513ce522a 100644 --- a/Eigen/src/Core/Transpose.h +++ b/Eigen/src/Core/Transpose.h @@ -38,7 +38,7 @@ * \sa MatrixBase::transpose(), MatrixBase::adjoint() */ template -struct ei_traits > +struct ei_traits > : ei_traits { typedef typename MatrixType::Scalar Scalar; typedef typename ei_nested::type MatrixTypeNested; diff --git a/Eigen/src/Core/products/GeneralUnrolled.h b/Eigen/src/Core/products/GeneralUnrolled.h index 72a61354e..7e2eebf08 100644 --- a/Eigen/src/Core/products/GeneralUnrolled.h +++ b/Eigen/src/Core/products/GeneralUnrolled.h @@ -45,6 +45,7 @@ struct ei_product_packet_impl; template struct ei_traits > { + typedef DenseStorageMatrix DenseStorageType; typedef typename ei_cleantype::type _LhsNested; typedef typename ei_cleantype::type _RhsNested; typedef typename ei_scalar_product_traits::ReturnType Scalar; diff --git a/Eigen/src/Geometry/Homogeneous.h b/Eigen/src/Geometry/Homogeneous.h index f64c92bc1..6cf6a381d 100644 --- a/Eigen/src/Geometry/Homogeneous.h +++ b/Eigen/src/Geometry/Homogeneous.h @@ -41,8 +41,8 @@ */ template struct ei_traits > + : ei_traits { - typedef typename MatrixType::Scalar Scalar; typedef typename ei_traits::StorageType StorageType; typedef typename ei_nested::type MatrixTypeNested; typedef typename ei_unref::type _MatrixTypeNested; diff --git a/Eigen/src/Sparse/SparseMatrixBase.h b/Eigen/src/Sparse/SparseMatrixBase.h index b7ac6594a..4ea1023af 100644 --- a/Eigen/src/Sparse/SparseMatrixBase.h +++ b/Eigen/src/Sparse/SparseMatrixBase.h @@ -109,13 +109,7 @@ template class SparseMatrixBase : public AnyMatrixBase >::ret AdjointReturnType; -// typedef Matrix::Scalar, -// ei_traits::RowsAtCompileTime, -// ei_traits::ColsAtCompileTime, -// AutoAlign | (ei_traits::Flags&RowMajorBit ? RowMajor : ColMajor), -// ei_traits::MaxRowsAtCompileTime, -// ei_traits::MaxColsAtCompileTime -// > PlainMatrixType; + typedef SparseMatrix PlainMatrixType; #define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::SparseMatrixBase #include "../plugins/CommonCwiseUnaryOps.h" @@ -376,6 +370,7 @@ template class SparseMatrixBase : public AnyMatrixBase Derived& operator*=(const SparseMatrixBase& other); + #ifdef EIGEN2_SUPPORT // deprecated template typename ei_plain_matrix_type_column_major::type @@ -386,6 +381,7 @@ template class SparseMatrixBase : public AnyMatrixBase& other) const; // template // void solveTriangularInPlace(SparseMatrixBase& other) const; + #endif // EIGEN2_SUPPORT template inline const SparseTriangularView triangularView() const; diff --git a/Eigen/src/Sparse/SparseProduct.h b/Eigen/src/Sparse/SparseProduct.h index 2aaa8713c..08f6e3cac 100644 --- a/Eigen/src/Sparse/SparseProduct.h +++ b/Eigen/src/Sparse/SparseProduct.h @@ -52,6 +52,7 @@ struct SparseProductReturnType template struct ei_traits > { + typedef DenseStorageMatrix DenseStorageType; // clean the nested types: typedef typename ei_cleantype::type _LhsNested; typedef typename ei_cleantype::type _RhsNested; @@ -261,6 +262,7 @@ struct ei_traits > : ei_traits, Lhs, Rhs> > { typedef Dense StorageType; + typedef DenseStorageMatrix DenseStorageType; }; template diff --git a/Eigen/src/Sparse/TriangularSolver.h b/Eigen/src/Sparse/TriangularSolver.h index d24756ba1..5b761e6ad 100644 --- a/Eigen/src/Sparse/TriangularSolver.h +++ b/Eigen/src/Sparse/TriangularSolver.h @@ -302,6 +302,7 @@ void SparseTriangularView::solveInPlace(SparseMatrixBase::solveTriangular(const MatrixBase& other derived().solveTriangularInPlace(res); return res; } +#endif // EIGEN2_SUPPORT #endif // EIGEN_SPARSETRIANGULARSOLVER_H