33 references to Lengths
System.Numerics.Tensors (33)
System\Numerics\Tensors\netcore\Tensor.cs (12)
239
if (!
Lengths
.SequenceEqual(value.
Lengths
))
241
srcSpan = AsTensorSpan().Slice(
Lengths
);
246
if (!srcSpan.Lengths.SequenceEqual(value.
Lengths
))
343
if (filter.
Lengths
.Length !=
Lengths
.Length)
346
for (int i = 0; i < filter.
Lengths
.Length; i++)
348
if (filter.
Lengths
[i] !=
Lengths
[i])
462
if (start.Length !=
Lengths
.Length)
594
TensorSpanHelpers.AdjustIndexes(_tensor.Rank - 1, 1, ref _curIndices, _tensor.
Lengths
);
655
sb.Append(
Lengths
[i]);
System\Numerics\Tensors\netcore\TensorExtensions.cs (19)
100
nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.
Lengths
, destination.Lengths);
235
if (input.
Lengths
.SequenceEqual(lengths))
238
if (!TensorHelpers.IsBroadcastableTo(input.
Lengths
, lengths))
246
nint[] intermediateShape = TensorHelpers.GetIntermediateShape(input.
Lengths
, lengths.Length);
2672
if (dimensions.Length != tensor.
Lengths
.Length)
2675
lengths[i] = tensor.
Lengths
[dimensions[i]];
2733
if (tensor.
Lengths
.SequenceEqual(lengths))
2772
if (lengthOffset < tensor.Rank && arrLengths[i] == tensor.
Lengths
[lengthOffset])
2779
origStrides.Insert(i, tensor.Strides[i] * tensor.
Lengths
[i]);
3246
TensorSpanHelpers.Memmove(ref Unsafe.Add(ref oslice._reference, TensorSpanHelpers.ComputeLinearIndex(oIndices, outputs[0].Strides, outputs[0].
Lengths
)), ref Unsafe.Add(ref islice._reference, TensorSpanHelpers.ComputeLinearIndex(iIndices, islice.Strides, islice.Lengths)), copyLength);
3290
for (int i = 0; i < tensor.
Lengths
.Length; i++)
3292
if (tensor.
Lengths
[i] != 1)
3294
tempLengths.Add(tensor.
Lengths
[i]);
3302
if (tensor.
Lengths
[dimension] != 1)
3306
for (int i = 0; i < tensor.
Lengths
.Length; i++)
3310
tempLengths.Add(tensor.
Lengths
[i]);
3603
if (tensor.
Lengths
.Length < 2)
3664
if (dimension > tensor.
Lengths
.Length)
3676
tempStrides.Insert(dimension, tensor.Strides[dimension] * tensor.
Lengths
[dimension]);
System\Numerics\Tensors\netcore\TensorHelpers.cs (2)
34
where T : IEquatable<T>, IEqualityOperators<T, T, bool> => IsBroadcastableTo(tensor1.
Lengths
, tensor2.
Lengths
);