From deb625470216fd594cafee301c083c195465a63c Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 12 Feb 2009 07:55:03 +0000 Subject: [PATCH] some ICC fixes --- Eigen/src/Sparse/SparseBlock.h | 40 +++++++++++++++---------------- Eigen/src/Sparse/SuperLUSupport.h | 2 +- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Eigen/src/Sparse/SparseBlock.h b/Eigen/src/Sparse/SparseBlock.h index e50852553..c39066676 100644 --- a/Eigen/src/Sparse/SparseBlock.h +++ b/Eigen/src/Sparse/SparseBlock.h @@ -60,20 +60,20 @@ class SparseInnerVectorSet : ei_no_assignment_operator, { ei_assert( (outerStart>=0) && ((outerStart+outerSize)<=matrix.outerSize()) ); } - + inline SparseInnerVectorSet(const MatrixType& matrix, int outer) - : m_matrix(matrix), m_outerStart(outer) + : m_matrix(matrix), m_outerStart(outer), m_outerSize(Size) { - ei_assert(Size==1); + ei_assert(Size!=Dynamic); ei_assert( (outer>=0) && (outer // inline SparseInnerVectorSet& operator=(const SparseMatrixBase& other) // { // return *this; // } - + // template // inline SparseInnerVectorSet& operator=(const SparseMatrixBase& other) // { @@ -117,14 +117,14 @@ class SparseInnerVectorSet, Size> { ei_assert( (outerStart>=0) && ((outerStart+outerSize)<=matrix.outerSize()) ); } - + inline SparseInnerVectorSet(const MatrixType& matrix, int outer) - : m_matrix(matrix), m_outerStart(outer) + : m_matrix(matrix), m_outerStart(outer), m_outerSize(Size) { - ei_assert(Size==1); + ei_assert(Size!=Dynamic); ei_assert( (outer>=0) && (outer inline SparseInnerVectorSet& operator=(const SparseMatrixBase& other) { @@ -145,12 +145,12 @@ class SparseInnerVectorSet, Size> } return *this; } - + inline SparseInnerVectorSet& operator=(const SparseInnerVectorSet& other) { return operator=(other); } - + // template // inline SparseInnerVectorSet& operator=(const SparseMatrixBase& other) // { @@ -195,14 +195,14 @@ class SparseInnerVectorSet, Size> { ei_assert( (outerStart>=0) && ((outerStart+outerSize)<=matrix.outerSize()) ); } - + inline SparseInnerVectorSet(const MatrixType& matrix, int outer) : m_matrix(matrix), m_outerStart(outer) { ei_assert(Size==1); ei_assert( (outer>=0) && (outer inline SparseInnerVectorSet& operator=(const SparseMatrixBase& other) { @@ -223,18 +223,18 @@ class SparseInnerVectorSet, Size> } return *this; } - + inline SparseInnerVectorSet& operator=(const SparseInnerVectorSet& other) { return operator=(other); } - + inline const Scalar* _valuePtr() const { return m_matrix._valuePtr() + m_matrix._outerIndexPtr()[m_outerStart]; } inline const int* _innerIndexPtr() const { return m_matrix._innerIndexPtr() + m_matrix._outerIndexPtr()[m_outerStart]; } inline const int* _outerIndexPtr() const { return m_matrix._outerIndexPtr() + m_outerStart; } - + // template // inline SparseInnerVectorSet& operator=(const SparseMatrixBase& other) // { @@ -262,7 +262,7 @@ SparseInnerVectorSet SparseMatrixBase::row(int i) return innerVector(i); } -/** \returns the i-th row of the matrix \c *this. For row-major matrix only. +/** \returns the i-th row of the matrix \c *this. For row-major matrix only. * (read-only version) */ template const SparseInnerVectorSet SparseMatrixBase::row(int i) const @@ -279,7 +279,7 @@ SparseInnerVectorSet SparseMatrixBase::col(int i) return innerVector(i); } -/** \returns the i-th column of the matrix \c *this. For column-major matrix only. +/** \returns the i-th column of the matrix \c *this. For column-major matrix only. * (read-only version) */ template const SparseInnerVectorSet SparseMatrixBase::col(int i) const @@ -312,7 +312,7 @@ SparseInnerVectorSet SparseMatrixBase::subrows(int sta return innerVectors(start, size); } -/** \returns the i-th row of the matrix \c *this. For row-major matrix only. +/** \returns the i-th row of the matrix \c *this. For row-major matrix only. * (read-only version) */ template const SparseInnerVectorSet SparseMatrixBase::subrows(int start, int size) const @@ -329,7 +329,7 @@ SparseInnerVectorSet SparseMatrixBase::subcols(int sta return innerVectors(start, size); } -/** \returns the i-th column of the matrix \c *this. For column-major matrix only. +/** \returns the i-th column of the matrix \c *this. For column-major matrix only. * (read-only version) */ template const SparseInnerVectorSet SparseMatrixBase::subcols(int start, int size) const diff --git a/Eigen/src/Sparse/SuperLUSupport.h b/Eigen/src/Sparse/SuperLUSupport.h index 825de0bb5..4fe719b90 100644 --- a/Eigen/src/Sparse/SuperLUSupport.h +++ b/Eigen/src/Sparse/SuperLUSupport.h @@ -104,7 +104,7 @@ struct SluMatrix : SuperMatrix ei_assert(false && "Scalar type not supported by SuperLU"); } } - + template static SluMatrix Map(Matrix& mat) {