18 references to ArrayUtils
Microsoft.ML.DataView (18)
src\Microsoft.ML.Core\Utilities\ArrayUtils.cs (1)
82int size = ArrayUtils.Size(array);
VBuffer.cs (16)
118Contracts.CheckParam(ArrayUtils.Size(values) >= length, nameof(values)); 146Contracts.CheckParam(ArrayUtils.Size(values) >= count, nameof(values)); 147Contracts.CheckParam(count == length || ArrayUtils.Size(indices) >= count, nameof(indices)); 243int copyMin = ArrayUtils.FindIndexSorted(_indices, 0, _count, sourceIndex); 244int copyLim = ArrayUtils.FindIndexSorted(_indices, copyMin, _count, sourceIndex + length); 323Contracts.CheckParam(0 <= length && length <= ArrayUtils.Size(source), nameof(length)); 324Contracts.CheckParam(0 <= sourceIndex && sourceIndex <= ArrayUtils.Size(source) - length, nameof(sourceIndex)); 380else if (_count > 0 && ArrayUtils.TryFindIndexSorted(_indices, 0, _count, index, out int bufferIndex)) 399if (_count > 0 && ArrayUtils.TryFindIndexSorted(_indices, 0, _count, index, out int bufferIndex)) 435int maxCapacity = maxValuesCapacity ?? ArrayUtils.ArrayMaxSize; 439ArrayUtils.EnsureSize(ref values, logicalValuesCount, maxCapacity, keepOldOnResize, out createdNewValues); 450ArrayUtils.EnsureSize(ref indices, logicalValuesCount, maxCapacity, keepOldOnResize, out createdNewIndices); 473Debug.Assert(0 <= count && count <= ArrayUtils.Size(values)); 475Debug.Assert(count == length || count <= ArrayUtils.Size(indices)); 507Debug.Assert(0 <= count && count <= ArrayUtils.Size(values)); 509Debug.Assert(count == length || count <= ArrayUtils.Size(indices));
VectorType.cs (1)
62Contracts.CheckParam(ArrayUtils.Size(dimensions) > 0, nameof(dimensions));