mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
reduce float warnings (comparisons and implicit conversions)
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
51311ec651
commit
d271a7d545
@@ -390,7 +390,7 @@ void test_mixing_types()
|
||||
typedef Matrix<Cplx,Dynamic,Dynamic> DenseMatCplx;
|
||||
|
||||
Index n = internal::random<Index>(1,100);
|
||||
double density = (std::max)(8./(n*n), 0.2);
|
||||
double density = (std::max)(8./static_cast<double>(n*n), 0.2);
|
||||
|
||||
SpMatReal sR1(n,n);
|
||||
SpMatCplx sC1(n,n), sC2(n,n), sC3(n,n);
|
||||
|
||||
Reference in New Issue
Block a user