162 references to ThrowHelper
System.Numerics.Tensors (162)
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)
189
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)
23
ThrowHelper
.ThrowArgumentOutOfRangeException();
48
ThrowHelper
.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (4)
334
ThrowHelper
.ThrowArgument_DestinationTooShort();
353
ThrowHelper
.ThrowArgument_DestinationTooShort();
387
ThrowHelper
.ThrowArgumentOutOfRangeException();
397
ThrowHelper
.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\Tensor.cs (49)
129
ThrowHelper
.ThrowArgument_ConcatenateTooFewTensors();
132
ThrowHelper
.ThrowArgument_InvalidDimension();
143
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
149
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
203
ThrowHelper
.ThrowArgument_ConcatenateTooFewTensors();
208
ThrowHelper
.ThrowArgument_InvalidDimension();
227
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
235
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
249
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
1345
ThrowHelper
.ThrowArgument_PermuteAxisOrder();
1366
ThrowHelper
.ThrowArgument_InvalidDimension();
1397
ThrowHelper
.ThrowArgument_CannotReshapeNonContiguousOrDense();
1406
ThrowHelper
.ThrowArgument_OnlyOneWildcard();
1420
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1446
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1470
ThrowHelper
.ThrowArgument_CannotReshapeNonContiguousOrDense();
1478
ThrowHelper
.ThrowArgument_OnlyOneWildcard();
1493
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1521
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1546
ThrowHelper
.ThrowArgument_CannotReshapeNonContiguousOrDense();
1555
ThrowHelper
.ThrowArgument_OnlyOneWildcard();
1570
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1596
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1879
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
1881
ThrowHelper
.ThrowArgument_SplitNotSplitEvenly();
1934
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
1960
ThrowHelper
.ThrowArgument_InvalidSqueezeAxis();
2001
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2027
ThrowHelper
.ThrowArgument_InvalidSqueezeAxis();
2068
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2094
ThrowHelper
.ThrowArgument_InvalidSqueezeAxis();
2133
ThrowHelper
.ThrowArgument_StackTooFewTensors();
2138
ThrowHelper
.ThrowArgument_StackShapesNotSame();
2144
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2173
ThrowHelper
.ThrowArgument_StackTooFewTensors();
2178
ThrowHelper
.ThrowArgument_StackShapesNotSame();
2184
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2347
ThrowHelper
.ThrowArgument_TransposeTooFewDimensions();
2421
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2458
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2495
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
4024
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4087
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4150
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4213
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4276
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4339
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4402
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4465
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();
395
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)
237
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();
886
ThrowHelper
.ThrowArgument_InvalidTensorShape();
899
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
907
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
912
ThrowHelper
.ThrowArgument_InvalidTensorShape();
942
ThrowHelper
.ThrowArgument_LengthIsNonZeroForNullReference();
956
ThrowHelper
.ThrowArgument_LengthIsNonZeroForNullReference();
961
ThrowHelper
.ThrowArgument_InvalidTensorShape();
1008
ThrowHelper
.ThrowArgumentOutOfRangeException();
1029
ThrowHelper
.ThrowArgumentOutOfRangeException();
1058
ThrowHelper
.ThrowArgumentOutOfRangeException();
1143
ThrowHelper
.ThrowArgumentOutOfRangeException();
1297
ThrowHelper
.ThrowIndexOutOfRangeException();
1317
ThrowHelper
.ThrowIndexOutOfRangeException();
System\Numerics\Tensors\netcore\TensorSpan_1.cs (9)
36
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
53
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
65
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
97
ThrowHelper
.ThrowIfArrayTypeMismatch<T>(array);
109
ThrowHelper
.ThrowIfArrayTypeMismatch<T>(array);
234
ThrowHelper
.ThrowArgument_DestinationTooShort();
252
ThrowHelper
.ThrowArgument_DestinationTooShort();
283
ThrowHelper
.ThrowArgumentOutOfRangeException();
293
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();