Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/07/17 14:05:09 (7 years ago)
Author:
epitzer
Message:

#2727 completely replace basic array with array mapped trie in ValueTypeArray and descendants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistentDataStructures/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVector.cs

    r14186 r14650  
    4141    public BinaryVector(BoolArray elements)
    4242      : this(elements.Length) {
    43       for (int i = 0; i < array.Length; i++)
    44         array[i] = elements[i];
     43      for (int i = 0; i < historyArray.Length; i++)
     44        historyArray[i] = elements[i];
    4545    }
    4646
     
    5252      if (length > 0) {
    5353        for (int i = 0; i < length; i++)
    54           array[startIndex + i] = random.Next(2) == 0;
     54          historyArray[startIndex + i] = random.Next(2) == 0;
    5555        OnReset();
    5656      }
Note: See TracChangeset for help on using the changeset viewer.