163 references to ThrowHelper
System.Numerics.Tensors (163)
System\Buffers\NIndex.cs (3)
32
ThrowHelper
.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
74
ThrowHelper
.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
87
ThrowHelper
.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (1)
1178
ThrowHelper
.ThrowArgument_SpansMustHaveSameLength();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (3)
63
ThrowHelper
.ThrowArgument_SpansMustHaveSameLength();
68
ThrowHelper
.ThrowArgument_DestinationTooShort();
1402
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (1)
206
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IStatefulUnaryOperator.cs (1)
36
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (5)
48
ThrowHelper
.ThrowArgument_SpansMustHaveSameLength();
53
ThrowHelper
.ThrowArgument_DestinationTooShort();
1525
ThrowHelper
.ThrowArgument_SpansMustHaveSameLength();
1530
ThrowHelper
.ThrowArgument_DestinationTooShort();
3018
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (7)
53
ThrowHelper
.ThrowArgument_DestinationTooShort(nameof(destination1));
58
ThrowHelper
.ThrowArgument_DestinationTooShort(nameof(destination2));
180
ThrowHelper
.ThrowArgument_SpansMustHaveSameLength();
185
ThrowHelper
.ThrowArgument_DestinationTooShort(nameof(destination1));
190
ThrowHelper
.ThrowArgument_DestinationTooShort(nameof(destination2));
369
ThrowHelper
.ThrowArgument_DestinationTooShort(nameof(destination1));
374
ThrowHelper
.ThrowArgument_DestinationTooShort(nameof(destination2));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOneToFourOperator.cs (1)
37
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOneToTwoOperator.cs (1)
37
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOperator.cs (1)
72
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryTwoToOneOperator.cs (1)
37
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (2)
26
ThrowHelper
.ThrowArgumentOutOfRangeException();
51
ThrowHelper
.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (4)
337
ThrowHelper
.ThrowArgument_DestinationTooShort();
356
ThrowHelper
.ThrowArgument_DestinationTooShort();
390
ThrowHelper
.ThrowArgumentOutOfRangeException();
400
ThrowHelper
.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\Tensor.cs (50)
129
ThrowHelper
.ThrowArgument_ConcatenateTooFewTensors();
132
ThrowHelper
.ThrowArgument_InvalidDimension();
143
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
149
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
202
ThrowHelper
.ThrowArgument_ConcatenateTooFewTensors();
205
ThrowHelper
.ThrowArgument_InvalidDimension();
220
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
226
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
238
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
1277
ThrowHelper
.ThrowArgument_PermuteAxisOrder();
1298
ThrowHelper
.ThrowArgument_InvalidDimension();
1329
ThrowHelper
.ThrowArgument_CannotReshapeNonContiguousOrDense();
1338
ThrowHelper
.ThrowArgument_OnlyOneWildcard();
1352
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1378
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1402
ThrowHelper
.ThrowArgument_CannotReshapeNonContiguousOrDense();
1410
ThrowHelper
.ThrowArgument_OnlyOneWildcard();
1425
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1453
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1478
ThrowHelper
.ThrowArgument_CannotReshapeNonContiguousOrDense();
1487
ThrowHelper
.ThrowArgument_OnlyOneWildcard();
1502
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1528
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1750
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
1752
ThrowHelper
.ThrowArgument_SplitNotSplitEvenly();
1805
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
1831
ThrowHelper
.ThrowArgument_InvalidSqueezeAxis();
1872
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
1898
ThrowHelper
.ThrowArgument_InvalidSqueezeAxis();
1939
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
1965
ThrowHelper
.ThrowArgument_InvalidSqueezeAxis();
2004
ThrowHelper
.ThrowArgument_StackTooFewTensors();
2009
ThrowHelper
.ThrowArgument_StackShapesNotSame();
2015
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2044
ThrowHelper
.ThrowArgument_StackTooFewTensors();
2049
ThrowHelper
.ThrowArgument_StackShapesNotSame();
2055
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2086
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(tensor));
2169
ThrowHelper
.ThrowArgument_TransposeTooFewDimensions();
2243
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2280
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2317
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
4019
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4082
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4145
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4208
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4271
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4334
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4397
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4460
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\Tensor_1.cs (4)
57
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
66
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
168
ThrowHelper
.ThrowArgument_DestinationTooShort();
180
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorDimensionSpan_1.cs (2)
23
ThrowHelper
.ThrowArgumentOutOfRangeException();
48
ThrowHelper
.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\TensorOperation.cs (5)
325
ThrowHelper
.ThrowArgument_LengthsNotCompatible();
332
ThrowHelper
.ThrowArgument_LengthsNotCompatible();
339
ThrowHelper
.ThrowArgument_LengthsNotCompatible();
356
ThrowHelper
.ThrowArgument_LengthsNotCompatible();
375
ThrowHelper
.ThrowArgument_LengthsNotCompatible();
System\Numerics\Tensors\netcore\TensorPrimitives.Average.cs (1)
22
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.Clamp.cs (1)
149
ThrowHelper
.ThrowArgument_MinGreaterThanMax();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (1)
21
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (4)
49
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
54
ThrowHelper
.ThrowArgument_SpansMustHaveSameLength();
188
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
193
ThrowHelper
.ThrowArgument_SpansMustHaveSameLength();
System\Numerics\Tensors\netcore\TensorPrimitives.Distance.cs (1)
39
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.HammingDistance.cs (2)
24
ThrowHelper
.ThrowArgument_SpansMustHaveSameLength();
67
ThrowHelper
.ThrowArgument_SpansMustHaveSameLength();
System\Numerics\Tensors\netcore\TensorPrimitives.IsCanonical.cs (1)
25
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsComplexNumber.cs (1)
25
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsFinite.cs (1)
25
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsImaginaryNumber.cs (1)
25
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsInteger.cs (1)
25
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsNaN.cs (1)
25
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegative.cs (1)
25
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsRealNumber.cs (1)
25
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (1)
399
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.Product.cs (3)
26
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
58
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
90
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.Sigmoid.cs (1)
30
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (3)
53
ThrowHelper
.ThrowArithmetic_NaN();
80
ThrowHelper
.ThrowArithmetic_NaN();
107
ThrowHelper
.ThrowArithmetic_NaN();
System\Numerics\Tensors\netcore\TensorPrimitives.SoftMax.cs (2)
29
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
34
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.StdDev.cs (1)
24
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorShape.cs (24)
115
ThrowHelper
.ThrowArgument_LengthIsNegative();
139
ThrowHelper
.ThrowArgument_InvalidTensorShape();
191
ThrowHelper
.ThrowArgument_LengthIsNegative();
198
ThrowHelper
.ThrowArgument_StrideIsNegative();
208
ThrowHelper
.ThrowArgument_InvalidTensorShape();
225
ThrowHelper
.ThrowArgument_InvalidTensorShape();
754
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
805
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
820
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
834
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
839
ThrowHelper
.ThrowArgument_InvalidTensorShape();
876
ThrowHelper
.ThrowArgument_InvalidTensorShape();
889
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
897
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
902
ThrowHelper
.ThrowArgument_InvalidTensorShape();
924
ThrowHelper
.ThrowArgument_LengthIsNonZeroForNullReference();
938
ThrowHelper
.ThrowArgument_LengthIsNonZeroForNullReference();
943
ThrowHelper
.ThrowArgument_InvalidTensorShape();
990
ThrowHelper
.ThrowArgumentOutOfRangeException();
1011
ThrowHelper
.ThrowArgumentOutOfRangeException();
1040
ThrowHelper
.ThrowArgumentOutOfRangeException();
1125
ThrowHelper
.ThrowArgumentOutOfRangeException();
1279
ThrowHelper
.ThrowIndexOutOfRangeException();
1299
ThrowHelper
.ThrowIndexOutOfRangeException();
System\Numerics\Tensors\netcore\TensorSpan_1.cs (9)
39
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
56
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
68
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
100
ThrowHelper
.ThrowIfArrayTypeMismatch<T>(array);
112
ThrowHelper
.ThrowIfArrayTypeMismatch<T>(array);
237
ThrowHelper
.ThrowArgument_DestinationTooShort();
255
ThrowHelper
.ThrowArgument_DestinationTooShort();
286
ThrowHelper
.ThrowArgumentOutOfRangeException();
296
ThrowHelper
.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\TensorPrimitives.Helpers.cs (2)
20
ThrowHelper
.ThrowArgument_InputAndDestinationSpanMustNotOverlap();
35
ThrowHelper
.ThrowArgument_DestinationSpansMustNotOverlap();
System\Numerics\Tensors\TensorPrimitives.Single.cs (7)
200
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
712
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
743
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
774
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
799
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
849
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
854
ThrowHelper
.ThrowArgument_DestinationTooShort();