18 references to Lengths
System.Numerics.Tensors (18)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (6)
379public ReadOnlySpan<nint> Lengths => _shape.Lengths; 405left._shape.Lengths.SequenceEqual(right._shape.Lengths )&& 446return new ReadOnlyTensorSpan<T>(ref Unsafe.As<TDerived, T>(ref items._reference), items._shape.Lengths, items._shape.Strides, items._shape._memoryLength); 755TensorSpanHelpers.AdjustIndexes(Rank - 2, 1, curIndexes, _shape.Lengths); 803TensorSpanHelpers.AdjustIndexes(Rank - 2, 1, curIndexes, _shape.Lengths);
System\Numerics\Tensors\netcore\TensorExtensions.cs (3)
6869TensorSpan<TOut> slicedDestination = destination.Slice(input._shape.Lengths); 6922TensorSpan<T> slicedDestination = destination.Slice(input._shape.Lengths); 6974TensorSpan<T> slicedDestination = destination.Slice(input._shape.Lengths);
System\Numerics\Tensors\netcore\TensorShape.cs (1)
62public nint FlattenedLength => TensorSpanHelpers.CalculateTotalLength(Lengths);
System\Numerics\Tensors\netcore\TensorSpan.cs (6)
387public ReadOnlySpan<nint> Lengths => _shape.Lengths; 413left._shape.Lengths.SequenceEqual(right._shape.Lengths) && 526TensorSpanHelpers.AdjustIndexes(Rank - 2, 1, curIndexes, _shape.Lengths); 658new ReadOnlyTensorSpan<T>(ref span._reference, span._shape.Lengths, span._shape.Strides, span._shape._memoryLength); 810TensorSpanHelpers.AdjustIndexes(Rank - 2, 1, curIndexes, _shape.Lengths);
System\Numerics\Tensors\netcore\TensorSpanHelpers.cs (2)
16where T : IEquatable<T>, IEqualityOperators<T, T, bool> => tensor1._shape.Lengths.SequenceEqual(tensor2._shape.Lengths);