diff options
author | 2009-02-12 07:55:03 +0000 | |
---|---|---|
committer | 2009-02-12 07:55:03 +0000 | |
commit | deb625470216fd594cafee301c083c195465a63c (patch) | |
tree | 8a96edd9a31565825bd68a85ef1091e87f0045a3 /Eigen/src/Sparse | |
parent | 7954f7709a1d2ab50e779838a709531c914a644c (diff) |
some ICC fixes
Diffstat (limited to 'Eigen/src/Sparse')
-rw-r--r-- | Eigen/src/Sparse/SparseBlock.h | 40 | ||||
-rw-r--r-- | 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<matrix.outerSize()) ); } - + // template<typename OtherDerived> // inline SparseInnerVectorSet& operator=(const SparseMatrixBase<OtherDerived>& other) // { // return *this; // } - + // template<typename Sparse> // inline SparseInnerVectorSet& operator=(const SparseMatrixBase<OtherDerived>& other) // { @@ -117,14 +117,14 @@ class SparseInnerVectorSet<DynamicSparseMatrix<_Scalar, _Options>, 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<matrix.outerSize()) ); } - + template<typename OtherDerived> inline SparseInnerVectorSet& operator=(const SparseMatrixBase<OtherDerived>& other) { @@ -145,12 +145,12 @@ class SparseInnerVectorSet<DynamicSparseMatrix<_Scalar, _Options>, Size> } return *this; } - + inline SparseInnerVectorSet& operator=(const SparseInnerVectorSet& other) { return operator=<SparseInnerVectorSet>(other); } - + // template<typename Sparse> // inline SparseInnerVectorSet& operator=(const SparseMatrixBase<OtherDerived>& other) // { @@ -195,14 +195,14 @@ class SparseInnerVectorSet<SparseMatrix<_Scalar, _Options>, 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<matrix.outerSize()) ); } - + template<typename OtherDerived> inline SparseInnerVectorSet& operator=(const SparseMatrixBase<OtherDerived>& other) { @@ -223,18 +223,18 @@ class SparseInnerVectorSet<SparseMatrix<_Scalar, _Options>, Size> } return *this; } - + inline SparseInnerVectorSet& operator=(const SparseInnerVectorSet& other) { return operator=<SparseInnerVectorSet>(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<typename Sparse> // inline SparseInnerVectorSet& operator=(const SparseMatrixBase<OtherDerived>& other) // { @@ -262,7 +262,7 @@ SparseInnerVectorSet<Derived,1> SparseMatrixBase<Derived>::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<typename Derived> const SparseInnerVectorSet<Derived,1> SparseMatrixBase<Derived>::row(int i) const @@ -279,7 +279,7 @@ SparseInnerVectorSet<Derived,1> SparseMatrixBase<Derived>::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<typename Derived> const SparseInnerVectorSet<Derived,1> SparseMatrixBase<Derived>::col(int i) const @@ -312,7 +312,7 @@ SparseInnerVectorSet<Derived,Dynamic> SparseMatrixBase<Derived>::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<typename Derived> const SparseInnerVectorSet<Derived,Dynamic> SparseMatrixBase<Derived>::subrows(int start, int size) const @@ -329,7 +329,7 @@ SparseInnerVectorSet<Derived,Dynamic> SparseMatrixBase<Derived>::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<typename Derived> const SparseInnerVectorSet<Derived,Dynamic> SparseMatrixBase<Derived>::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<typename Scalar, int Rows, int Cols, int Options, int MRows, int MCols> static SluMatrix Map(Matrix<Scalar,Rows,Cols,Options,MRows,MCols>& mat) { |