Free cookie consent management tool by TermsFeed Policy Generator

Changeset 15201


Ignore:
Timestamp:
07/11/17 15:24:13 (7 years ago)
Author:
abeham
Message:

#2797: simplified faster cloning of RealVector

File:
1 edited

Legend:

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

    r15181 r15201  
    4545        array[i] = elements[i];
    4646    }
    47     public RealVector(RealVector other)
    48       : this(other.Length) {
    49       Array.Copy(other.array, array, other.Length);
    50     }
     47    public RealVector(RealVector other) : this(other.array) { }
    5148
    5249    public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset for help on using the changeset viewer.