1 write to Elements
Microsoft.ML.Data (1)
Transforms\NormalizeColumnSng.cs (1)
546Elements = new List<TType>(startingSize);
28 references to Elements
Microsoft.ML.Data (28)
Transforms\NormalizeColumnSng.cs (28)
553protected bool HasLeftChild(int elementIndex) => GetLeftChildIndex(elementIndex) < Elements.Count; 554protected bool HasRightChild(int elementIndex) => GetRightChildIndex(elementIndex) < Elements.Count; 557protected TType GetLeftChild(int elementIndex) => Elements[GetLeftChildIndex(elementIndex)]; 558protected TType GetRightChild(int elementIndex) => Elements[GetRightChildIndex(elementIndex)]; 559protected TType GetParent(int elementIndex) => Elements[GetParentIndex(elementIndex)]; 563var temp = Elements[firstIndex]; 564Elements[firstIndex] = Elements[secondIndex]; 565Elements[secondIndex] = temp; 570Contracts.Check(Elements.Count > 0, "Cannot peek with 0 elements"); 572return Elements[0]; 577Contracts.Check(Elements.Count > 0, "Cannot pop with 0 elements"); 579var result = Elements[0]; 580Elements[0] = Elements[Elements.Count - 1]; 585Elements.RemoveAt(Elements.Count - 1); 594Elements.Add(element); 599public int Count() => Elements.Count; 626if (Elements[biggerIndex].CompareTo(Elements[index]) <= 0) 638var index = Elements.Count - 1; 639while (!IsRoot(index) && Elements[index].CompareTo(GetParent(index)) > 0) 669if (Elements[smallerIndex].CompareTo(Elements[index]) >= 0) 681var index = Elements.Count - 1; 682while (!IsRoot(index) && Elements[index].CompareTo(GetParent(index)) < 0)