jeffheaton / encog-java-core

http://www.heatonresearch.com/encog
Other
744 stars 268 forks source link

Matrix equality within a tolerance #167

Closed JohnVorwald closed 7 years ago

JohnVorwald commented 10 years ago

The member function Matrix.equals(Matrix, int) incorrectly modifies the integer parameter.

precision = (int) Math.pow(10, precision);

Recommend using a local variable like

final long longTest = (long) Math.pow(10, precision);

jeffheaton commented 7 years ago

This was corrected earlier.