125 references to Lengths
System.Numerics.Tensors (125)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (2)
29
_length = TensorPrimitives.Product(tensor.
Lengths
[..dimension]);
31
_sliceShape = TensorShape.Create((dimension != tensor.Rank) ? tensor.
Lengths
[dimension..] : [1], tensor.Strides[dimension..]);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (1)
317
public int Rank =>
Lengths
.Length;
System\Numerics\Tensors\netcore\Tensor.cs (122)
61
return Broadcast(source, lengthsSource.
Lengths
);
519
Tensor<bool> destination = CreateUninitialized<bool>(x.
Lengths
);
680
Tensor<bool> destination = Tensor.Create<bool>(x.
Lengths
, false);
861
Tensor<bool> destination = Tensor.Create<bool>(x.
Lengths
, false);
1042
Tensor<bool> destination = Tensor.Create<bool>(x.
Lengths
, false);
1223
Tensor<bool> destination = Tensor.Create<bool>(x.
Lengths
, false);
1572
if (tensor.
Lengths
.SequenceEqual(lengths))
1617
if (lengthOffset < tensor.Rank && newLengths[i] == tensor.
Lengths
[lengthOffset])
1624
origStrides.Insert(i, tensor.Strides[i] * tensor.
Lengths
[i]);
1707
Tensor<T> output = Tensor.Create<T>(tensor.
Lengths
);
1721
Tensor<T> output = Tensor.Create<T>(tensor.
Lengths
);
1765
for (int i = (int)tensor.
Lengths
[dimension]; i > 0; i--)
1768
dstIndexes[dimension] = new NRange(tensor.
Lengths
[dimension] - i, tensor.
Lengths
[dimension] - i + 1);
1788
&& tensor.Lengths.SequenceEqual(other.
Lengths
)
1800
&& tensor.
Lengths
.SequenceEqual(other.
Lengths
)
1850
if (tensor.
Lengths
[(int)dimension] % splitCount != 0)
1857
nint[] newShape = tensor.
Lengths
.ToArray();
2075
int removalCount = tensor.
Lengths
.Count(1);
2079
for (int i = 0; i < tensor.
Lengths
.Length; i++)
2081
if (tensor.
Lengths
[i] != 1)
2083
lengths[index] = tensor.
Lengths
[i];
2098
if (tensor.
Lengths
[dimension] != 1)
2103
for (int i = 0; i < tensor.
Lengths
.Length; i++)
2107
lengths[index] = tensor.
Lengths
[i];
2272
nint length = nint.Max(tensor.
Lengths
[0], maximumLengths[0]);
2282
TensorShape tmpShape = TensorShape.Create(tensor.
Lengths
[1..], tensor.Strides[1..]);
2289
if (length != tensor.
Lengths
[0])
2307
if (length != tensor.
Lengths
[0])
2492
if (dimension > tensor.
Lengths
.Length)
2499
tensor.
Lengths
.Slice(0, dimension).CopyTo(newLengths);
2500
tensor.
Lengths
.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
2532
Tensor<T> destination = CreateUninitialized<T>(x.
Lengths
);
2559
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2586
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2613
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2654
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2696
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2723
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2750
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2777
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2805
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2832
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2859
Tensor<T> destination = Tensor.CreateUninitialized<T>(y.
Lengths
);
2888
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2915
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2942
Tensor<T> destination = Tensor.CreateUninitialized<T>(y.
Lengths
);
2970
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
2997
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3042
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3069
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3098
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3125
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3153
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3180
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3209
Tensor<TTo> destination = Tensor.CreateUninitialized<TTo>(source.
Lengths
);
3240
Tensor<TTo> destination = Tensor.CreateUninitialized<TTo>(source.
Lengths
);
3271
Tensor<TTo> destination = Tensor.CreateUninitialized<TTo>(source.
Lengths
);
3301
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3314
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3356
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3383
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3436
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3473
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3517
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3530
Tensor<T> destination = Tensor.CreateUninitialized<T>(y.
Lengths
);
3617
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3644
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3669
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3692
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3715
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3738
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3761
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3841
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3864
Tensor<T> destination = Tensor.CreateUninitialized<T>(y.
Lengths
);
3888
Tensor<int> destination = Tensor.CreateUninitialized<int>(x.
Lengths
);
3960
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
3987
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4034
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4060
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4087
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4114
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4141
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4168
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4232
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4295
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4358
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4421
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4484
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4547
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4610
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4673
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4700
Tensor<T> destination = Tensor.Create<T>(x.
Lengths
);
4755
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4792
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4815
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4862
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4885
Tensor<T> destination = Tensor.CreateUninitialized<T>(y.
Lengths
);
4921
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4944
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4968
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
4994
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5021
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5046
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5069
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5093
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5116
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5140
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5165
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5190
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5213
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5239
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5267
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5313
Tensor<T> destination = CreateUninitialized<T>(x.
Lengths
);
5326
Tensor<T> destination = CreateUninitialized<T>(y.
Lengths
);
5423
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5446
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5469
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5492
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5515
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);
5564
Tensor<T> destination = Tensor.CreateUninitialized<T>(x.
Lengths
);