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