diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-09-03 11:26:19 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-09-03 11:26:19 +0000 |
commit | 75649551c26b7fb6cff4933aaa7b31303163aaa7 (patch) | |
tree | 70b712deee87bd36bce34adb8909ca474cc3f3fd | |
parent | 2a2c305c4d1a617e7a053ba3e1faa2f883834f68 (diff) |
compilation fixes with MSVC
-rw-r--r-- | Eigen/src/Core/Product.h | 2 | ||||
-rw-r--r-- | Eigen/src/LU/LU.h | 27 | ||||
-rw-r--r-- | test/dynalloc.cpp | 2 |
3 files changed, 8 insertions, 23 deletions
diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h index f18bc1e4a..04deae0ab 100644 --- a/Eigen/src/Core/Product.h +++ b/Eigen/src/Core/Product.h @@ -36,7 +36,7 @@ struct ei_product_coeff_impl; template<int StorageOrder, int Index, typename Lhs, typename Rhs, typename PacketScalar, int LoadMode> struct ei_product_packet_impl; -template<typename T> class ei_product_eval_to_column_major; +template<typename T> struct ei_product_eval_to_column_major; /** \class ProductReturnType * diff --git a/Eigen/src/LU/LU.h b/Eigen/src/LU/LU.h index 6e844e196..f7ed1b412 100644 --- a/Eigen/src/LU/LU.h +++ b/Eigen/src/LU/LU.h @@ -71,9 +71,9 @@ template<typename MatrixType> class LU MatrixType::MaxRowsAtCompileTime) }; - typedef Matrix<typename MatrixType::Scalar, MatrixType::ColsAtCompileTime, Dynamic, + typedef Matrix<typename MatrixType::Scalar, MatrixType::ColsAtCompileTime, Dynamic, MatrixType::Flags&RowMajorBit, - MatrixType::MaxColsAtCompileTime, MaxSmallDimAtCompileTime> KernelReturnType; + MatrixType::MaxColsAtCompileTime, MaxSmallDimAtCompileTime> KernelResultType; /** Constructor. * @@ -150,12 +150,7 @@ template<typename MatrixType> class LU * * \sa kernel() */ - void computeKernel(Matrix<typename MatrixType::Scalar, - MatrixType::ColsAtCompileTime, Dynamic, - MatrixType::Flags&RowMajorBit, - MatrixType::MaxColsAtCompileTime, - LU<MatrixType>::MaxSmallDimAtCompileTime - > *result) const; + void computeKernel(KernelResultType *result) const; /** \returns the kernel of the matrix. The columns of the returned matrix * will form a basis of the kernel. @@ -171,7 +166,7 @@ template<typename MatrixType> class LU * * \sa computeKernel() */ - const KernelReturnType kernel() const; + const KernelResultType kernel() const; /** This method finds a solution x to the equation Ax=b, where A is the matrix of which * *this is the LU decomposition, if any exists. @@ -372,12 +367,7 @@ typename ei_traits<MatrixType>::Scalar LU<MatrixType>::determinant() const } template<typename MatrixType> -void LU<MatrixType>::computeKernel(Matrix<typename MatrixType::Scalar, - MatrixType::ColsAtCompileTime, Dynamic, - MatrixType::Flags&RowMajorBit, - MatrixType::MaxColsAtCompileTime, - LU<MatrixType>::MaxSmallDimAtCompileTime - > *result) const +void LU<MatrixType>::computeKernel(KernelResultType *result) const { ei_assert(!isInvertible()); const int dimker = dimensionOfKernel(), cols = m_lu.cols(); @@ -414,13 +404,10 @@ void LU<MatrixType>::computeKernel(Matrix<typename MatrixType::Scalar, } template<typename MatrixType> -const typename LU<MatrixType>::KernelReturnType +const typename LU<MatrixType>::KernelResultType LU<MatrixType>::kernel() const { - Matrix<typename MatrixType::Scalar, MatrixType::ColsAtCompileTime, Dynamic, - MatrixType::Flags&RowMajorBit, - MatrixType::MaxColsAtCompileTime, - LU<MatrixType>::MaxSmallDimAtCompileTime> result(m_lu.cols(), dimensionOfKernel()); + KernelResultType result(m_lu.cols(), dimensionOfKernel()); computeKernel(&result); return result; } diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp index 287dce0d2..3b0d703ae 100644 --- a/test/dynalloc.cpp +++ b/test/dynalloc.cpp @@ -24,8 +24,6 @@ #include "main.h" -#include <ext/malloc_allocator.h> - // test compilation with both a struct and a class... struct MyStruct : WithAlignedOperatorNew { |