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