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