Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
22 references to Lengths
System.Numerics.Tensors (22)
System\Numerics\Tensors\netcore\Tensor.cs (13)
382outerLength *= destination.Lengths[i]; 456bool hasMore = !destination.Lengths[..dimension].Contains(0); 471hasMore = TensorShape.AdjustToNextIndex(ranges, dimension - 1, destination.Lengths); 1733if (tensor.Lengths.SequenceEqual(lengths)) 2069nint axisLength = dimension == -1 ? tensor.FlattenedLength : tensor.Lengths[dimension]; 2075innerLength *= tensor.Lengths[i]; 2216nint axisLength = destination.Lengths[destinationAxis]; 2564for (int i = 0, index = 0; i < tensor.Lengths.Length; i++) 2566if (tensor.Lengths[i] != 1) 2568lengths[index] = tensor.Lengths[i]; 2580if (tensor.Lengths[dimension] != 1) 2587tensor.Lengths[..dimension].CopyTo(lengths); 2588tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]);
System\Numerics\Tensors\netcore\TensorDimensionSpan_1.cs (1)
34ReadOnlySpan<nint> lengths = tensor.Lengths;
System\Numerics\Tensors\netcore\TensorOperation.cs (6)
162ReadOnlyTensorSpan<T> input = source.Lengths.SequenceEqual(destination.Lengths) ? source : BroadcastSource(source, destination._shape); 927ReadOnlySpan<nint> destinationLengths = destination.Lengths; 990ReadOnlySpan<nint> destinationLengths = destination.Lengths; 1156ReadOnlySpan<nint> destinationLengths = destination.Lengths; 1292ReadOnlySpan<nint> destinationLengths = destination.Lengths; 1349ReadOnlySpan<nint> destinationLengths = destination.Lengths;
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
189public int Rank => Lengths.Length; 408result = Tensor.CreateFromShape<T>(Lengths, IsPinned);