mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Move internal::swap to numext to fix ambiguous call with std::swap
This commit is contained in:
@@ -606,12 +606,12 @@ template<typename SolverType> struct direct_selfadjoint_eigenvalues<SolverType,3
|
||||
|
||||
// Sort in increasing order.
|
||||
if (roots(0) >= roots(1))
|
||||
internal::swap(roots(0),roots(1));
|
||||
numext::swap(roots(0),roots(1));
|
||||
if (roots(1) >= roots(2))
|
||||
{
|
||||
internal::swap(roots(1),roots(2));
|
||||
numext::swap(roots(1),roots(2));
|
||||
if (roots(0) >= roots(1))
|
||||
internal::swap(roots(0),roots(1));
|
||||
numext::swap(roots(0),roots(1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user