mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-06 19:29:08 +08:00
bug fix in SparseView::incrementToNonZero
This commit is contained in:
parent
d1b54ecfa3
commit
00d4a360ba
@ -1,7 +1,7 @@
|
|||||||
// This file is part of Eigen, a lightweight C++ template library
|
// This file is part of Eigen, a lightweight C++ template library
|
||||||
// for linear algebra.
|
// for linear algebra.
|
||||||
//
|
//
|
||||||
// Copyright (C) 2010 Gael Guennebaud <gael.guennebaud@inria.fr>
|
// Copyright (C) 2011 Gael Guennebaud <gael.guennebaud@inria.fr>
|
||||||
// Copyright (C) 2010 Daniel Lowengrub <lowdanie@gmail.com>
|
// Copyright (C) 2010 Daniel Lowengrub <lowdanie@gmail.com>
|
||||||
//
|
//
|
||||||
// Eigen is free software; you can redistribute it and/or
|
// Eigen is free software; you can redistribute it and/or
|
||||||
@ -92,10 +92,10 @@ protected:
|
|||||||
private:
|
private:
|
||||||
void incrementToNonZero()
|
void incrementToNonZero()
|
||||||
{
|
{
|
||||||
while(internal::isMuchSmallerThan(value(), m_view.m_reference, m_view.m_epsilon) && (bool(*this)))
|
while((bool(*this)) && internal::isMuchSmallerThan(value(), m_view.m_reference, m_view.m_epsilon))
|
||||||
{
|
{
|
||||||
IterBase::operator++();
|
IterBase::operator++();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user