Changeset 15162 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding
- Timestamp:
- 07/06/17 14:42:50 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorEqualityComparer.cs
r15067 r15162 28 28 public class RealVectorEqualityComparer : EqualityComparer<RealVector> { 29 29 public override bool Equals(RealVector x, RealVector y) { 30 if ( x == null && y == null) return true;30 if (ReferenceEquals(x, y)) return true; 31 31 if (x == null || y == null) return false; 32 if (ReferenceEquals(x, y)) return true;33 32 if (x.Length != y.Length) return false; 34 33 for (var i = 0; i < x.Length; i++) 35 if (x[i] == y[i]) return false;34 if (x[i] != y[i]) return false; 36 35 return true; 37 36 }
Note: See TracChangeset
for help on using the changeset viewer.