Changeset 15114 for trunk/sources
- Timestamp:
- 07/03/17 15:54:29 (7 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVector.cs
r15096 r15114 78 78 } 79 79 80 public void Add(RealVector other) {81 if (other.Length != Length) throw new ArgumentException("Vectors are of unequal length.");82 for (var i = 0; i < Length; i++)83 this[i] += other[i];84 }85 86 public void Subtract(RealVector other) {87 if (other.Length != Length) throw new ArgumentException("Vectors are of unequal length.");88 for (var i = 0; i < Length; i++)89 this[i] -= other[i];90 }91 92 80 public double DotProduct(RealVector other) { 93 81 if (other.Length != Length) throw new ArgumentException("Vectors are of unequal length.");
Note: See TracChangeset
for help on using the changeset viewer.