Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
125 references to Lengths
System.Numerics.Tensors (125)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (2)
31
_length = TensorPrimitives.Product(tensor.
Lengths
[..dimension]);
33
_sliceShape = TensorShape.Create((dimension != tensor.Rank) ? tensor.
Lengths
[dimension..] : [1], tensor.Strides[dimension..], tensor.IsPinned);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
291
public int Rank =>
Lengths
.Length;
520
Tensor<T> tmp = Tensor.CreateFromShape<T>(
Lengths
, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (121)
57
return Broadcast(source, lengthsSource.
Lengths
);
424
Tensor<bool> destination = CreateFromShapeUninitialized<bool>(x.
Lengths
);
585
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
766
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
947
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1128
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1473
if (tensor.
Lengths
.SequenceEqual(lengths))
1518
if (lengthOffset < tensor.Rank && newLengths[i] == tensor.
Lengths
[lengthOffset])
1525
origStrides.Insert(i, tensor.Strides[i] * tensor.
Lengths
[i]);
1608
Tensor<T> output = CreateFromShape<T>(tensor.
Lengths
);
1622
Tensor<T> output = CreateFromShape<T>(tensor.
Lengths
);
1666
for (int i = (int)tensor.
Lengths
[dimension]; i > 0; i--)
1669
dstIndexes[dimension] = new NRange(tensor.
Lengths
[dimension] - i, tensor.
Lengths
[dimension] - i + 1);
1689
&& tensor.Lengths.SequenceEqual(other.
Lengths
)
1701
&& tensor.
Lengths
.SequenceEqual(other.
Lengths
)
1751
if (tensor.
Lengths
[(int)dimension] % splitCount != 0)
1758
nint[] newLengths = [.. tensor.
Lengths
];
1947
for (int i = 0, index = 0; i < tensor.
Lengths
.Length; i++)
1949
if (tensor.
Lengths
[i] != 1)
1951
lengths[index] = tensor.
Lengths
[i];
1963
if (tensor.
Lengths
[dimension] != 1)
1970
tensor.
Lengths
[..dimension].CopyTo(lengths);
1971
tensor.
Lengths
[(dimension + 1)..].CopyTo(lengths[dimension..]);
2103
nint length = nint.Max(tensor.
Lengths
[0], maximumLengths[0]);
2113
TensorShape tmpShape = TensorShape.Create(tensor.
Lengths
[1..], tensor.Strides[1..], tensor.IsPinned);
2120
if (length != tensor.
Lengths
[0])
2138
if (length != tensor.
Lengths
[0])
2316
if (dimension > tensor.
Lengths
.Length)
2323
tensor.
Lengths
.Slice(0, dimension).CopyTo(newLengths);
2324
tensor.
Lengths
.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
2356
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2383
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2410
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2437
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2478
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2520
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2547
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2574
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2601
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2629
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2656
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2683
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
2712
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2739
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2766
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
2794
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2821
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2866
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2893
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2922
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2949
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2977
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3004
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3033
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3064
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3095
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3125
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3138
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3180
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3207
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3260
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3297
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3341
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3354
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
3441
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3468
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3493
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3516
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3539
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3562
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3585
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3665
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3688
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
3712
Tensor<int> destination = CreateFromShapeUninitialized<int>(x.
Lengths
);
3784
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3811
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3858
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3884
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3911
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3938
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3965
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3992
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4056
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4119
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4182
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4245
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4308
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4371
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4434
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4497
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4524
Tensor<T> destination = CreateFromShape<T>(x.
Lengths
);
4579
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4616
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4639
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4686
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4709
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
4745
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4768
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4792
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4818
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4845
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4870
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4893
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4917
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4940
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4964
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4989
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5014
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5037
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5063
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5091
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5137
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5150
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
5247
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5270
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5293
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5316
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5339
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5388
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);