Free cookie consent management tool by TermsFeed Policy Generator

Changeset 15114 for trunk/sources


Ignore:
Timestamp:
07/03/17 15:54:29 (7 years ago)
Author:
abeham
Message:

#2797:

  • Removed Add and Subtract methods from RealVector... our persistence thinks it can use "Add" to add elements to the vector
Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVector.cs

    r15096 r15114  
    7878    }
    7979
    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 
    9280    public double DotProduct(RealVector other) {
    9381      if (other.Length != Length) throw new ArgumentException("Vectors are of unequal length.");
Note: See TracChangeset for help on using the changeset viewer.