mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Get rid of wrong "subscript above bounds" warning (bug #149).
This commit is contained in:
@@ -496,7 +496,7 @@ void EigenSolver<MatrixType>::doComputeEigenvectors()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (q < 0) // Complex vector
|
else if (q < 0 && n > 0) // Complex vector
|
||||||
{
|
{
|
||||||
Scalar lastra=0, lastsa=0, lastw=0;
|
Scalar lastra=0, lastsa=0, lastw=0;
|
||||||
Index l = n-1;
|
Index l = n-1;
|
||||||
@@ -570,6 +570,10 @@ void EigenSolver<MatrixType>::doComputeEigenvectors()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
eigen_assert("Internal bug in EigenSolver"); // this should not happen
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Back transformation to get eigenvectors of original matrix
|
// Back transformation to get eigenvectors of original matrix
|
||||||
|
|||||||
Reference in New Issue
Block a user