mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 20:56:00 +08:00
fix #1901: warning in Mode==(Upper|Lower)
This commit is contained in:
parent
5b9bfc892a
commit
27e6648074
@ -453,7 +453,7 @@ void permute_symm_to_fullsymm(const MatrixType& mat, SparseMatrix<typename Matri
|
|||||||
Index r = it.row();
|
Index r = it.row();
|
||||||
Index c = it.col();
|
Index c = it.col();
|
||||||
Index ip = perm ? perm[i] : i;
|
Index ip = perm ? perm[i] : i;
|
||||||
if(Mode==(Upper|Lower))
|
if(Mode==int(Upper|Lower))
|
||||||
count[StorageOrderMatch ? jp : ip]++;
|
count[StorageOrderMatch ? jp : ip]++;
|
||||||
else if(r==c)
|
else if(r==c)
|
||||||
count[ip]++;
|
count[ip]++;
|
||||||
@ -486,7 +486,7 @@ void permute_symm_to_fullsymm(const MatrixType& mat, SparseMatrix<typename Matri
|
|||||||
StorageIndex jp = perm ? perm[j] : j;
|
StorageIndex jp = perm ? perm[j] : j;
|
||||||
StorageIndex ip = perm ? perm[i] : i;
|
StorageIndex ip = perm ? perm[i] : i;
|
||||||
|
|
||||||
if(Mode==(Upper|Lower))
|
if(Mode==int(Upper|Lower))
|
||||||
{
|
{
|
||||||
Index k = count[StorageOrderMatch ? jp : ip]++;
|
Index k = count[StorageOrderMatch ? jp : ip]++;
|
||||||
dest.innerIndexPtr()[k] = StorageOrderMatch ? ip : jp;
|
dest.innerIndexPtr()[k] = StorageOrderMatch ? ip : jp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user