mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-15 05:05:58 +08:00
fix possible segfault
This commit is contained in:
parent
d791b51112
commit
8a690299c6
@ -3,7 +3,7 @@ template <typename Scalar>
|
|||||||
void ei_r1updt(int m, int n, Matrix< Scalar, Dynamic, Dynamic > &s, const Scalar *u, Scalar *v, Scalar *w, bool *sing)
|
void ei_r1updt(int m, int n, Matrix< Scalar, Dynamic, Dynamic > &s, const Scalar *u, Scalar *v, Scalar *w, bool *sing)
|
||||||
{
|
{
|
||||||
/* Local variables */
|
/* Local variables */
|
||||||
int i, j, nm1;
|
int i, j=1, nm1;
|
||||||
Scalar tan__;
|
Scalar tan__;
|
||||||
int nmj;
|
int nmj;
|
||||||
Scalar cos__, sin__, tau, temp, cotan;
|
Scalar cos__, sin__, tau, temp, cotan;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user