162 references to ThrowHelper
System.Numerics.Tensors (162)
System\Buffers\NIndex.cs (3)
32ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException(); 74ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException(); 87ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (1)
1178ThrowHelper.ThrowArgument_SpansMustHaveSameLength();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (3)
63ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 68ThrowHelper.ThrowArgument_DestinationTooShort(); 1402ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (1)
189ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IStatefulUnaryOperator.cs (1)
36ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (5)
48ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 53ThrowHelper.ThrowArgument_DestinationTooShort(); 1525ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 1530ThrowHelper.ThrowArgument_DestinationTooShort(); 3018ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (7)
53ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination1)); 58ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination2)); 180ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 185ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination1)); 190ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination2)); 369ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination1)); 374ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination2));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOneToFourOperator.cs (1)
37ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOneToTwoOperator.cs (1)
37ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOperator.cs (1)
72ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryTwoToOneOperator.cs (1)
37ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (2)
23ThrowHelper.ThrowArgumentOutOfRangeException(); 48ThrowHelper.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (4)
334ThrowHelper.ThrowArgument_DestinationTooShort(); 353ThrowHelper.ThrowArgument_DestinationTooShort(); 387ThrowHelper.ThrowArgumentOutOfRangeException(); 397ThrowHelper.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\Tensor.cs (49)
129ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 132ThrowHelper.ThrowArgument_InvalidDimension(); 143ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 149ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 203ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 208ThrowHelper.ThrowArgument_InvalidDimension(); 227ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 235ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 249ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1345ThrowHelper.ThrowArgument_PermuteAxisOrder(); 1366ThrowHelper.ThrowArgument_InvalidDimension(); 1397ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1406ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1420ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1446ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1470ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1478ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1493ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1521ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1546ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1555ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1570ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1596ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1879ThrowHelper.ThrowArgument_AxisLargerThanRank(); 1881ThrowHelper.ThrowArgument_SplitNotSplitEvenly(); 1934ThrowHelper.ThrowArgument_AxisLargerThanRank(); 1960ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 2001ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2027ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 2068ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2094ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 2133ThrowHelper.ThrowArgument_StackTooFewTensors(); 2138ThrowHelper.ThrowArgument_StackShapesNotSame(); 2144ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2173ThrowHelper.ThrowArgument_StackTooFewTensors(); 2178ThrowHelper.ThrowArgument_StackShapesNotSame(); 2184ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2347ThrowHelper.ThrowArgument_TransposeTooFewDimensions(); 2421ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2458ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2495ThrowHelper.ThrowArgument_AxisLargerThanRank(); 4024ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4087ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4150ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4213ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4276ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4339ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4402ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4465ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\Tensor_1.cs (4)
57ThrowHelper.ThrowIfArrayTypeMismatch(array); 66ThrowHelper.ThrowIfArrayTypeMismatch(array); 168ThrowHelper.ThrowArgument_DestinationTooShort(); 180ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorDimensionSpan_1.cs (2)
23ThrowHelper.ThrowArgumentOutOfRangeException(); 48ThrowHelper.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\TensorOperation.cs (5)
325ThrowHelper.ThrowArgument_LengthsNotCompatible(); 332ThrowHelper.ThrowArgument_LengthsNotCompatible(); 339ThrowHelper.ThrowArgument_LengthsNotCompatible(); 356ThrowHelper.ThrowArgument_LengthsNotCompatible(); 395ThrowHelper.ThrowArgument_LengthsNotCompatible();
System\Numerics\Tensors\netcore\TensorPrimitives.Average.cs (1)
22ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.Clamp.cs (1)
149ThrowHelper.ThrowArgument_MinGreaterThanMax();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (1)
21ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (4)
49ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 54ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 188ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 193ThrowHelper.ThrowArgument_SpansMustHaveSameLength();
System\Numerics\Tensors\netcore\TensorPrimitives.Distance.cs (1)
39ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.HammingDistance.cs (2)
24ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 67ThrowHelper.ThrowArgument_SpansMustHaveSameLength();
System\Numerics\Tensors\netcore\TensorPrimitives.IsCanonical.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsComplexNumber.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsFinite.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsImaginaryNumber.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsInteger.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsNaN.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegative.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsRealNumber.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (1)
237ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.Product.cs (3)
26ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 58ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 90ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.Sigmoid.cs (1)
30ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (3)
53ThrowHelper.ThrowArithmetic_NaN(); 80ThrowHelper.ThrowArithmetic_NaN(); 107ThrowHelper.ThrowArithmetic_NaN();
System\Numerics\Tensors\netcore\TensorPrimitives.SoftMax.cs (2)
29ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 34ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.StdDev.cs (1)
24ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorShape.cs (24)
115ThrowHelper.ThrowArgument_LengthIsNegative(); 139ThrowHelper.ThrowArgument_InvalidTensorShape(); 191ThrowHelper.ThrowArgument_LengthIsNegative(); 198ThrowHelper.ThrowArgument_StrideIsNegative(); 208ThrowHelper.ThrowArgument_InvalidTensorShape(); 225ThrowHelper.ThrowArgument_InvalidTensorShape(); 754ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 805ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 820ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 834ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 839ThrowHelper.ThrowArgument_InvalidTensorShape(); 886ThrowHelper.ThrowArgument_InvalidTensorShape(); 899ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 907ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 912ThrowHelper.ThrowArgument_InvalidTensorShape(); 942ThrowHelper.ThrowArgument_LengthIsNonZeroForNullReference(); 956ThrowHelper.ThrowArgument_LengthIsNonZeroForNullReference(); 961ThrowHelper.ThrowArgument_InvalidTensorShape(); 1008ThrowHelper.ThrowArgumentOutOfRangeException(); 1029ThrowHelper.ThrowArgumentOutOfRangeException(); 1058ThrowHelper.ThrowArgumentOutOfRangeException(); 1143ThrowHelper.ThrowArgumentOutOfRangeException(); 1297ThrowHelper.ThrowIndexOutOfRangeException(); 1317ThrowHelper.ThrowIndexOutOfRangeException();
System\Numerics\Tensors\netcore\TensorSpan_1.cs (9)
36ThrowHelper.ThrowIfArrayTypeMismatch(array); 53ThrowHelper.ThrowIfArrayTypeMismatch(array); 65ThrowHelper.ThrowIfArrayTypeMismatch(array); 97ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 109ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 234ThrowHelper.ThrowArgument_DestinationTooShort(); 252ThrowHelper.ThrowArgument_DestinationTooShort(); 283ThrowHelper.ThrowArgumentOutOfRangeException(); 293ThrowHelper.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\TensorPrimitives.Helpers.cs (2)
20ThrowHelper.ThrowArgument_InputAndDestinationSpanMustNotOverlap(); 35ThrowHelper.ThrowArgument_DestinationSpansMustNotOverlap();
System\Numerics\Tensors\TensorPrimitives.Single.cs (7)
200ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 712ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 743ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 774ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 799ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 849ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 854ThrowHelper.ThrowArgument_DestinationTooShort();