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
@@ -53,7 +53,7 @@ template<int OtherStorage, typename SparseMatrixType> void sparse_permutations(c
|
||||
// bool IsRowMajor1 = SparseMatrixType::IsRowMajor;
|
||||
// bool IsRowMajor2 = OtherSparseMatrixType::IsRowMajor;
|
||||
|
||||
double density = (std::max)(8./(rows*cols), 0.01);
|
||||
double density = (std::max)(8./static_cast<double>(rows*cols), 0.01);
|
||||
|
||||
SparseMatrixType mat(rows, cols), up(rows,cols), lo(rows,cols);
|
||||
OtherSparseMatrixType res;
|
||||
|
||||
Reference in New Issue
Block a user