mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix shadow warnings triggered by clang
This commit is contained in:
@@ -1119,9 +1119,9 @@ typename SparseMatrix<_Scalar,_Options,_Index>::Scalar& SparseMatrix<_Scalar,_Op
|
||||
// so that the entire free-space is allocated to the current inner-vector.
|
||||
eigen_internal_assert(data_end < m_data.allocatedSize());
|
||||
StorageIndex new_end = convert_index(m_data.allocatedSize());
|
||||
for(Index j=outer+1; j<=m_outerSize; ++j)
|
||||
if(m_outerIndex[j]==data_end)
|
||||
m_outerIndex[j] = new_end;
|
||||
for(Index k=outer+1; k<=m_outerSize; ++k)
|
||||
if(m_outerIndex[k]==data_end)
|
||||
m_outerIndex[k] = new_end;
|
||||
}
|
||||
return m_data.value(p);
|
||||
}
|
||||
@@ -1144,9 +1144,9 @@ typename SparseMatrix<_Scalar,_Options,_Index>::Scalar& SparseMatrix<_Scalar,_Op
|
||||
// so that the entire free-space is allocated to the current inner-vector.
|
||||
eigen_internal_assert(data_end < m_data.allocatedSize());
|
||||
StorageIndex new_end = convert_index(m_data.allocatedSize());
|
||||
for(Index j=outer+1; j<=m_outerSize; ++j)
|
||||
if(m_outerIndex[j]==data_end)
|
||||
m_outerIndex[j] = new_end;
|
||||
for(Index k=outer+1; k<=m_outerSize; ++k)
|
||||
if(m_outerIndex[k]==data_end)
|
||||
m_outerIndex[k] = new_end;
|
||||
}
|
||||
|
||||
// and insert it at the right position (sorted insertion)
|
||||
|
||||
@@ -36,9 +36,9 @@ public:
|
||||
EIGEN_SPARSE_PUBLIC_INTERFACE(SparseView)
|
||||
typedef typename internal::remove_all<MatrixType>::type NestedExpression;
|
||||
|
||||
explicit SparseView(const MatrixType& mat, const Scalar& m_reference = Scalar(0),
|
||||
RealScalar m_epsilon = NumTraits<Scalar>::dummy_precision()) :
|
||||
m_matrix(mat), m_reference(m_reference), m_epsilon(m_epsilon) {}
|
||||
explicit SparseView(const MatrixType& mat, const Scalar& reference = Scalar(0),
|
||||
RealScalar epsilon = NumTraits<Scalar>::dummy_precision())
|
||||
: m_matrix(mat), m_reference(reference), m_epsilon(epsilon) {}
|
||||
|
||||
inline Index rows() const { return m_matrix.rows(); }
|
||||
inline Index cols() const { return m_matrix.cols(); }
|
||||
|
||||
Reference in New Issue
Block a user