mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-01 18:26:24 +08:00
fix potential warning
This commit is contained in:
parent
deba829911
commit
3bd421e073
@ -76,7 +76,7 @@ void MatrixBase<Derived>::makeHouseholder(
|
||||
else
|
||||
{
|
||||
beta = ei_sqrt(ei_abs2(c0) + tailSqNorm);
|
||||
if (ei_real(c0)>=0.)
|
||||
if (ei_real(c0)>=RealScalar(0))
|
||||
beta = -beta;
|
||||
essential = tail / (c0 - beta);
|
||||
tau = ei_conj((beta - c0) / beta);
|
||||
|
Loading…
Reference in New Issue
Block a user