diff options
author | 2008-01-06 13:17:07 +0000 | |
---|---|---|
committer | 2008-01-06 13:17:07 +0000 | |
commit | 495eb7053ab7101f714718332399d51b10645b8b (patch) | |
tree | c835f693522b380b53563e0c0fe870b27e5fb9a4 /Eigen/src/Core/DiagonalMatrix.h | |
parent | d1d55e67e967a9bd0d447a7ea105ac2771cde557 (diff) |
Patch by Gael Guennebaud, making Eigen compatible with the Intel compiler (icc).
CCMAIL:eigen@lists.tuxfamily.org
Diffstat (limited to 'Eigen/src/Core/DiagonalMatrix.h')
-rw-r--r-- | Eigen/src/Core/DiagonalMatrix.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h index 67f10cfb7..99245b750 100644 --- a/Eigen/src/Core/DiagonalMatrix.h +++ b/Eigen/src/Core/DiagonalMatrix.h @@ -51,15 +51,15 @@ class DiagonalMatrix : NoOperatorEquals, DiagonalMatrix(const CoeffsVecRef& coeffs) : m_coeffs(coeffs) { - assert(CoeffsVectorType::IsVectorAtCompileTime + assert(CoeffsVectorType::Traits::IsVectorAtCompileTime && coeffs.size() > 0); } - private: - static const TraversalOrder _Order = Indifferent; - static const int _RowsAtCompileTime = CoeffsVectorType::SizeAtCompileTime, - _ColsAtCompileTime = CoeffsVectorType::SizeAtCompileTime; + static const TraversalOrder Order = Indifferent; + static const int RowsAtCompileTime = CoeffsVectorType::Traits::SizeAtCompileTime, + ColsAtCompileTime = CoeffsVectorType::Traits::SizeAtCompileTime; + private: const DiagonalMatrix& _ref() const { return *this; } int _rows() const { return m_coeffs.size(); } int _cols() const { return m_coeffs.size(); } |