Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
116 references to Lengths
System.Numerics.Tensors (116)
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;
531
Tensor<T> tmp = Tensor.CreateFromShape<T>(
Lengths
, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (110)
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..]);
2081
sb.AppendJoin(", ", tensor.
Lengths
);
2090
nint length = nint.Min(tensor.
Lengths
[0], maximumLengths[0]);
2106
nint length = nint.Min(tensor.
Lengths
[0], maximumLengths[0]);
2124
TensorShape tmpShape = TensorShape.Create(tensor.
Lengths
[1..], tensor.Strides[1..], tensor.IsPinned);
2136
if (length != tensor.
Lengths
[0])
2172
if (length != tensor.
Lengths
[0])
2365
if (dimension > tensor.
Lengths
.Length)
2372
tensor.
Lengths
.Slice(0, dimension).CopyTo(newLengths);
2373
tensor.
Lengths
.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
2405
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2432
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2459
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2486
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2513
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2540
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2567
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2594
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2622
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2649
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2676
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
2705
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2732
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2759
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
2787
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2814
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2858
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2885
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
2914
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
2945
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
2976
Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.
Lengths
);
3006
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3019
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3061
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3088
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3141
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3178
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3237
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3264
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3289
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3312
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3335
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3358
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3381
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3461
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3484
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
3508
Tensor<int> destination = CreateFromShapeUninitialized<int>(x.
Lengths
);
3580
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3607
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3654
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3680
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3707
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3734
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3761
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3788
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3852
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3915
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
3978
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4041
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4104
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4167
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4230
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4293
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4331
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4378
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4401
Tensor<T> destination = CreateFromShapeUninitialized<T>(y.
Lengths
);
4437
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4460
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4484
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4510
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4537
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4562
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4585
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4609
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4632
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4656
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4681
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4706
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4729
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4755
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4783
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4856
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4879
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4902
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4925
Tensor<T> destination = CreateFromShapeUninitialized<T>(x.
Lengths
);
4948
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
);