Closed PetrToman closed 12 years ago
If Equilateral.encode(final int set) is called with set = negative number, an exception is thrown. There should be a check:
Equilateral.encode(final int set)
set
if (set < 0 || set>this.matrix.length) throw new EncogError("Class out of range for equilateral: " + set);
Note: In C# code, this statement is missing completely, which may cause IndexOutOfRangeException.
Corrected in both 3.1 and 3.2.
Ported to C#.
If
Equilateral.encode(final int set)
is called withset
= negative number, an exception is thrown. There should be a check:Note: In C# code, this statement is missing completely, which may cause IndexOutOfRangeException.