- Timestamp:
- 12/04/17 23:19:44 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorEqualityComparer.cs
r15162 r15492 45 45 } 46 46 } 47 48 public static IEnumerable<int> GetDifferingIndices(IntegerVector a, IntegerVector b) { 49 if (a == null || b == null) throw new ArgumentNullException("arguments must not be null"); 50 for (int i = 0; i < a.Length; i++) 51 if (a[i] != b[i]) yield return i; 52 } 47 53 } 48 54 }
Note: See TracChangeset
for help on using the changeset viewer.