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)
383if (tensors[0].Rank > TensorShape.MaxInlineRank) 489if (right.Rank > TensorShape.MaxInlineRank) 545if (x.Rank > TensorShape.MaxInlineRank) 590if (broadcastedLeft.Rank > TensorShape.MaxInlineRank) 629if (x.Rank > TensorShape.MaxInlineRank) 674if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 713if (x.Rank > TensorShape.MaxInlineRank) 860if (right.Rank > TensorShape.MaxInlineRank) 920if (x.Rank > TensorShape.MaxInlineRank) 980if (y.Rank > TensorShape.MaxInlineRank) 1069if (right.Rank > TensorShape.MaxInlineRank) 1129if (x.Rank > TensorShape.MaxInlineRank) 1189if (y.Rank > TensorShape.MaxInlineRank) 1233if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 1272if (x.Rank > TensorShape.MaxInlineRank) 1311if (y.Rank > TensorShape.MaxInlineRank) 1356if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 1395if (x.Rank > TensorShape.MaxInlineRank) 1434if (y.Rank > TensorShape.MaxInlineRank) 1480if (broadcastedLeft.Rank > TensorShape.MaxInlineRank) 1519if (x.Rank > TensorShape.MaxInlineRank) 1558if (y.Rank > TensorShape.MaxInlineRank) 1604if (broadcastedLeft.Rank > TensorShape.MaxInlineRank) 1643if (x.Rank > TensorShape.MaxInlineRank) 1682if (y.Rank > TensorShape.MaxInlineRank) 1772if (right.Rank > TensorShape.MaxInlineRank) 1832if (x.Rank > TensorShape.MaxInlineRank) 1892if (y.Rank > TensorShape.MaxInlineRank) 1981if (right.Rank > TensorShape.MaxInlineRank) 2041if (x.Rank > TensorShape.MaxInlineRank) 2101if (y.Rank > TensorShape.MaxInlineRank) 2146if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 2185if (x.Rank > TensorShape.MaxInlineRank) 2224if (y.Rank > TensorShape.MaxInlineRank) 2270if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 2309if (x.Rank > TensorShape.MaxInlineRank) 2348if (y.Rank > TensorShape.MaxInlineRank) 2393if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 2432if (x.Rank > TensorShape.MaxInlineRank) 2471if (y.Rank > TensorShape.MaxInlineRank) 2516if (broadcastedRight.Rank > TensorShape.MaxInlineRank) 2555if (x.Rank > TensorShape.MaxInlineRank) 2594if (y.Rank > TensorShape.MaxInlineRank) 3575Span<int> dimension = tensor.Rank <= TensorShape.MaxInlineRank ? stackalloc int[tensor.Rank] : new int[tensor.Rank]; 3642Span<nint> lengths = tensor._lengths.Length + 1 <= TensorShape.MaxInlineRank ? 3649Span<nint> strides = tensor.Strides.Length + 1 <= TensorShape.MaxInlineRank ? 3679Span<nint> lengths = tensor.Lengths.Length + 1 <= TensorShape.MaxInlineRank ? 3686Span<nint> strides = tensor.Strides.Length + 1 <= TensorShape.MaxInlineRank ? 3716Span<nint> lengths = tensor.Lengths.Length + 1 <= TensorShape.MaxInlineRank ? 3723Span<nint> strides = tensor.Strides.Length + 1 <= TensorShape.MaxInlineRank ? 6936if (input.Lengths.Length > TensorShape.MaxInlineRank) 6988if (input.Lengths.Length > TensorShape.MaxInlineRank) 7040if (input.Lengths.Length > TensorShape.MaxInlineRank) 7104if (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)