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