73 references to TensorShape
System.Numerics.Tensors (73)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (9)
27internal readonly TensorShape _shape; 148TensorSpanHelpers.FillLengths(array.Rank <= TensorShape.MaxInlineRank ? 167array.Rank <= TensorShape.MaxInlineRank ? stackalloc nint[array.Rank] : new nint[array.Rank], 215array.Rank <= TensorShape.MaxInlineRank ? stackalloc nint[array.Rank] : new nint[array.Rank], 545if (Rank > TensorShape.MaxInlineRank) 601if (Rank > TensorShape.MaxInlineRank) 696if (Rank > TensorShape.MaxInlineRank) 756if (Rank > TensorShape.MaxInlineRank) 797if (Rank > TensorShape.MaxInlineRank)
System\Numerics\Tensors\netcore\Tensor.cs (1)
664maximumLengths = Rank <= TensorShape.MaxInlineRank ? stackalloc nint[Rank] : new nint[Rank];
System\Numerics\Tensors\netcore\TensorExtensions.cs (54)
397if (tensors[0].Rank > TensorShape.MaxInlineRank) 503if (right.Rank > TensorShape.MaxInlineRank) 559if (x.Rank > TensorShape.MaxInlineRank) 604if (broadcastedLeft.Rank > TensorShape.MaxInlineRank) 643if (x.Rank > TensorShape.MaxInlineRank) 688if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 727if (x.Rank > TensorShape.MaxInlineRank) 874if (right.Rank > TensorShape.MaxInlineRank) 934if (x.Rank > TensorShape.MaxInlineRank) 994if (y.Rank > TensorShape.MaxInlineRank) 1083if (right.Rank > TensorShape.MaxInlineRank) 1143if (x.Rank > TensorShape.MaxInlineRank) 1203if (y.Rank > TensorShape.MaxInlineRank) 1247if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 1286if (x.Rank > TensorShape.MaxInlineRank) 1325if (y.Rank > TensorShape.MaxInlineRank) 1370if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 1409if (x.Rank > TensorShape.MaxInlineRank) 1448if (y.Rank > TensorShape.MaxInlineRank) 1494if (broadcastedLeft.Rank > TensorShape.MaxInlineRank) 1533if (x.Rank > TensorShape.MaxInlineRank) 1572if (y.Rank > TensorShape.MaxInlineRank) 1618if (broadcastedLeft.Rank > TensorShape.MaxInlineRank) 1657if (x.Rank > TensorShape.MaxInlineRank) 1696if (y.Rank > TensorShape.MaxInlineRank) 1786if (right.Rank > TensorShape.MaxInlineRank) 1846if (x.Rank > TensorShape.MaxInlineRank) 1906if (y.Rank > TensorShape.MaxInlineRank) 1995if (right.Rank > TensorShape.MaxInlineRank) 2055if (x.Rank > TensorShape.MaxInlineRank) 2115if (y.Rank > TensorShape.MaxInlineRank) 2160if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 2199if (x.Rank > TensorShape.MaxInlineRank) 2238if (y.Rank > TensorShape.MaxInlineRank) 2284if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 2323if (x.Rank > TensorShape.MaxInlineRank) 2362if (y.Rank > TensorShape.MaxInlineRank) 2407if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 2446if (x.Rank > TensorShape.MaxInlineRank) 2485if (y.Rank > TensorShape.MaxInlineRank) 2530if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 2569if (x.Rank > TensorShape.MaxInlineRank) 2608if (y.Rank > TensorShape.MaxInlineRank) 3619Span<int> dimension = tensor.Rank <= TensorShape.MaxInlineRank ? stackalloc int[tensor.Rank] : new int[tensor.Rank]; 3686Span<nint> lengths = tensor._lengths.Length + 1 <= TensorShape.MaxInlineRank ? 3693Span<nint> strides = tensor.Strides.Length + 1 <= TensorShape.MaxInlineRank ? 3723Span<nint> lengths = tensor.Lengths.Length + 1 <= TensorShape.MaxInlineRank ? 3730Span<nint> strides = tensor.Strides.Length + 1 <= TensorShape.MaxInlineRank ? 3760Span<nint> lengths = tensor.Lengths.Length + 1 <= TensorShape.MaxInlineRank ? 3767Span<nint> strides = tensor.Strides.Length + 1 <= TensorShape.MaxInlineRank ? 6941if (input.Lengths.Length > TensorShape.MaxInlineRank) 6993if (input.Lengths.Length > TensorShape.MaxInlineRank) 7045if (input.Lengths.Length > TensorShape.MaxInlineRank) 7109if (newSize.Length > TensorShape.MaxInlineRank)
System\Numerics\Tensors\netcore\TensorSpan.cs (9)
27internal readonly TensorShape _shape; 151TensorSpanHelpers.FillLengths(array.Rank <= TensorShape.MaxInlineRank ? stackalloc nint[array.Rank] : new nint[array.Rank], array), 168array.Rank < TensorShape.MaxInlineRank ? stackalloc nint[array.Rank] : new nint[array.Rank], 217array.Rank <= TensorShape.MaxInlineRank ? stackalloc nint[array.Rank] : new nint[array.Rank], 525if (Rank > TensorShape.MaxInlineRank) 575if (Rank > TensorShape.MaxInlineRank) 629if (Rank > TensorShape.MaxInlineRank) 730if (Rank > TensorShape.MaxInlineRank) 809if (Rank > TensorShape.MaxInlineRank)