Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
139 references to Lengths
System.Numerics.Tensors (139)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (2)
28_length = TensorShape.GetProduct(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)
294public int Rank => Lengths.Length; 534Tensor<T> tmp = Tensor.CreateFromShape<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (105)
58return Broadcast(source, lengthsSource.Lengths); 557Tensor<bool> destination = CreateFromShapeUninitialized<bool>(x.Lengths); 718Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 899Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1080Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1261Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1623if (tensor.Lengths.SequenceEqual(lengths)) 1636GetReshapeStrides(tensor.Lengths, tensor.Strides, tensor.IsDense, newLengths, strides); 1792Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 1806Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 1843&& tensor.Lengths.SequenceEqual(destination.Lengths) 1846if ((tensor._shape.LinearLength == 1) || (dimension >= 0 && tensor.Lengths[dimension] == 1)) 1898else if (tensor.Lengths[dimension] == 1) 1948|| !tensor.Lengths.SequenceEqual(other.Lengths)) 2042if (tensor.Lengths[(int)dimension] % splitCount != 0) 2050tensor.Lengths.CopyTo(newLengths); 2269for (int i = 0, index = 0; i < tensor.Lengths.Length; i++) 2271if (tensor.Lengths[i] != 1) 2273lengths[index] = tensor.Lengths[i]; 2285if (tensor.Lengths[dimension] != 1) 2292tensor.Lengths[..dimension].CopyTo(lengths); 2293tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2414sb.AppendJoin(", ", tensor.Lengths); 2423nint length = nint.Min(tensor.Lengths[0], maximumLengths[0]); 2439nint length = nint.Min(tensor.Lengths[0], maximumLengths[0]); 2457TensorShape tmpShape = TensorShape.Create(tensor.Lengths[1..], tensor.Strides[1..], tensor.IsPinned); 2469if (length != tensor.Lengths[0]) 2505if (length != tensor.Lengths[0]) 2699if (dimension > tensor.Lengths.Length) 2706tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2707tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1)); 2739Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2766Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2793Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2820Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2847Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2874Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2901Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2928Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2983Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3010Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 3066Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3093Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 3121Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3148Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3192Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3219Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3248Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3279Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3310Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3340Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3395Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3422Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3475Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3512Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3571Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3598Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3623Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3646Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3669Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3692Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3715Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3795Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3818Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 3842Tensor<int> destination = CreateFromShapeUninitialized<int>(x.Lengths); 3982Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4009Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4056Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4082Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4109Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4136Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4163Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4190Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4254Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4317Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4380Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4443Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4506Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4569Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4632Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4695Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4733Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4780Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4803Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 4839Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4862Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4886Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4912Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4939Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4964Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4987Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5011Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5034Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5058Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5083Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5108Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5131Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5157Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5184Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5256Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5279Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5302Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5325Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5348Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Addition.cs (1)
30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_BitwiseAnd.cs (1)
30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_BitwiseOr.cs (1)
30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Decrement.cs (1)
15Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Division.cs (2)
30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 43Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_ExclusiveOr.cs (1)
30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Increment.cs (1)
15Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_LeftShift.cs (1)
16Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Multiply.cs (1)
30Tensor<T> destination = CreateFromShape<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_RightShift.cs (1)
16Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Subtraction.cs (2)
30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 43Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_UnaryNegation.cs (1)
14Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_UnsignedRightShift.cs (1)
16Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\TensorOperation.cs (14)
37&& source.Lengths.SequenceEqual(destination.Lengths) 67ReadOnlySpan<nint> sourceLengths = source.Lengths; 294ReadOnlyTensorSpan<TArg> optimizedSource = x.Lengths.SequenceEqual(destination.Lengths) ? x : BroadcastSource(x, destination._shape); 295if (destination.FlattenedLength != 0 && optimizedSource.Lengths.SequenceEqual(destination.Lengths)) 443ReadOnlyTensorSpan<TArg1> optimizedX = x.Lengths.SequenceEqual(destination.Lengths) ? x : BroadcastSource(x, destination._shape); 444ReadOnlyTensorSpan<TArg2> optimizedY = y.Lengths.SequenceEqual(destination.Lengths) ? y : BroadcastSource(y, destination._shape); 446optimizedX.Lengths.SequenceEqual(destination.Lengths) && 447optimizedY.Lengths.SequenceEqual(destination.Lengths)) 535ReadOnlyTensorSpan<TArg1> optimizedSource = x.Lengths.SequenceEqual(destination.Lengths) ? x : BroadcastSource(x, destination._shape); 536if (destination.FlattenedLength != 0 && optimizedSource.Lengths.SequenceEqual(destination.Lengths)) 582ReadOnlyTensorSpan<TArg> optimizedSource = y.Lengths.SequenceEqual(destination.Lengths) ? y : BroadcastSource(y, destination._shape); 583if (destination.FlattenedLength != 0 && optimizedSource.Lengths.SequenceEqual(destination.Lengths)) 694ReadOnlySpan<nint> xLengths = x.Lengths; 695ReadOnlySpan<nint> yLengths = y.Lengths;