Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
117 references to Lengths
System.Numerics.Tensors (117)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (2)
28
_length = TensorPrimitives.Product(tensor.
Lengths
[..dimension]);
30
_sliceShape = TensorShape.Create((dimension != tensor.Rank) ? tensor.
Lengths
[dimension..] : [1], tensor.Strides[dimension..], tensor.IsPinned);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
288
public int Rank =>
Lengths
.Length;
527
Tensor<T> tmp = Tensor.CreateFromShape<T>(
Lengths
, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (109)
57
return Broadcast(source, lengthsSource.
Lengths
);
492
Tensor<bool> destination = CreateFromShapeUninitialized<bool>(x.
Lengths
);
653
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
834
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1015
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1196
Tensor<bool> destination = CreateFromShape<bool>(x.
Lengths
, false);
1541
if (tensor.
Lengths
.SequenceEqual(lengths))
1586
if (lengthOffset < tensor.Rank && newLengths[i] == tensor.
Lengths
[lengthOffset])
1593
origStrides.Insert(i, tensor.Strides[i] * tensor.
Lengths
[i]);
1718
Tensor<T> output = CreateFromShape<T>(tensor.
Lengths
);
1732
Tensor<T> output = CreateFromShape<T>(tensor.
Lengths
);
1776
for (int i = (int)tensor.
Lengths
[dimension]; i > 0; i--)
1779
dstIndexes[dimension] = new NRange(tensor.
Lengths
[dimension] - i, tensor.
Lengths
[dimension] - i + 1);
1807
|| !tensor.
Lengths
.SequenceEqual(other.
Lengths
))
1880
if (tensor.
Lengths
[(int)dimension] % splitCount != 0)
1887
nint[] newLengths = [.. tensor.
Lengths
];
2076
for (int i = 0, index = 0; i < tensor.
Lengths
.Length; i++)
2078
if (tensor.
Lengths
[i] != 1)
2080
lengths[index] = tensor.
Lengths
[i];
2092
if (tensor.
Lengths
[dimension] != 1)
2099
tensor.
Lengths
[..dimension].CopyTo(lengths);
2100
tensor.
Lengths
[(dimension + 1)..].CopyTo(lengths[dimension..]);
2210
sb.AppendJoin(", ", tensor.
Lengths
);
2219
nint length = nint.Min(tensor.
Lengths
[0], maximumLengths[0]);
2235
nint length = nint.Min(tensor.
Lengths
[0], maximumLengths[0]);
2253
TensorShape tmpShape = TensorShape.Create(tensor.
Lengths
[1..], tensor.Strides[1..], tensor.IsPinned);
2265
if (length != tensor.
Lengths
[0])
2301
if (length != tensor.
Lengths
[0])
2494
if (dimension > tensor.
Lengths
.Length)
2501
tensor.
Lengths
.Slice(0, dimension).CopyTo(newLengths);
2502
tensor.
Lengths
.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
2534
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2561
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2588
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2615
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2642
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2669
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2696
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2723
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2751
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2778
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2805
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
2834
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2861
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2888
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
2916
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2943
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2987
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3014
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3043
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3074
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3105
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3135
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3148
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3190
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3217
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3270
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3307
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3366
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3393
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3418
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3441
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3464
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3487
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3510
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3590
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3613
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
3637
Tensor<int> destination = CreateFromShapeUninitialized<int>(x.
Lengths
);
3789
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3816
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3863
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3889
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3916
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3943
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3970
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3997
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4061
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4124
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4187
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4250
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4313
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4376
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4439
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4502
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4540
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4587
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4610
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
4646
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4669
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4693
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4719
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4746
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4771
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4794
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4818
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4841
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4865
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4890
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4915
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4938
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4964
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4992
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5064
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5087
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5110
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5133
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
5156
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_OnesComplement.cs (1)
15
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\Tensor.op_UnaryNegation.cs (1)
14
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
System\Numerics\Tensors\netcore\TensorOperation.cs (2)
372
ReadOnlySpan<nint> xLengths = x.
Lengths
;
373
ReadOnlySpan<nint> yLengths = y.
Lengths
;