|
From: Li, P. <pet...@wa...> - 2007-03-15 14:36:26
|
Hi, Luigi,
in pseudoSqrt.cpp the checking of symmetric matrix may fail due to
rounding errors in construction of a matrix.=20
For safety, line 235 and 343
=20
QL_REQUIRE(matrix[i][j] =3D=3D matrix[j][i],
"matrix not symmetric");
=20
should be changed to QL_REQUIRE(fabs(matrix[i][j] -matrix[j][i])<
QL_EPSILON ,
"matrix not symmetric");
=20
The current check thinks=20
0.026098788171586292 0.026098788171586288 are different.=20
=20
Thanks.
=20
------------------------------------
Peter Li=20
=20
|