mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Some warning fixes
This commit is contained in:
parent
40797dbea3
commit
5539587b1f
@ -356,7 +356,7 @@ template<typename VectorsType, typename CoeffsType, int Side> class HouseholderS
|
||||
if(m_length>=BlockSize && dst.cols()>1)
|
||||
{
|
||||
// Make sure we have at least 2 useful blocks, otherwise it is point-less:
|
||||
Index blockSize = m_length<2*BlockSize ? (m_length+1)/2 : BlockSize;
|
||||
Index blockSize = m_length<Index(2*BlockSize) ? (m_length+1)/2 : Index(BlockSize);
|
||||
for(Index i = 0; i < m_length; i+=blockSize)
|
||||
{
|
||||
Index end = m_reverse ? (std::min)(m_length,i+blockSize) : m_length-i;
|
||||
|
@ -499,11 +499,8 @@ void SparseLU<MatrixType, OrderingType>::factorize(const MatrixType& matrix)
|
||||
eigen_assert(m_analysisIsOk && "analyzePattern() should be called first");
|
||||
eigen_assert((matrix.rows() == matrix.cols()) && "Only for squared matrices");
|
||||
|
||||
typedef typename IndexVector::Scalar StorageIndex;
|
||||
|
||||
m_isInitialized = true;
|
||||
|
||||
|
||||
// Apply the column permutation computed in analyzepattern()
|
||||
// m_mat = matrix * m_perm_c.inverse();
|
||||
m_mat = matrix;
|
||||
|
@ -392,7 +392,6 @@ inline typename DGMRES<_MatrixType, _Preconditioner>::ComplexVector DGMRES<_Matr
|
||||
template< typename _MatrixType, typename _Preconditioner>
|
||||
inline typename DGMRES<_MatrixType, _Preconditioner>::ComplexVector DGMRES<_MatrixType, _Preconditioner>::schurValues(const RealSchur<DenseMatrix>& schurofH) const
|
||||
{
|
||||
typedef typename MatrixType::Index Index;
|
||||
const DenseMatrix& T = schurofH.matrixT();
|
||||
Index it = T.rows();
|
||||
ComplexVector eig(it);
|
||||
|
Loading…
Reference in New Issue
Block a user