173 references to ThrowHelper
System.Numerics.Tensors (173)
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)
30
ThrowHelper
.ThrowArgumentOutOfRangeException();
56
ThrowHelper
.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (7)
154
ThrowHelper
.ThrowIfArrayTypeMismatch<T>(array, isReadOnly: true);
184
ThrowHelper
.ThrowIfArrayTypeMismatch<T>(array, isReadOnly: true);
340
ThrowHelper
.ThrowArgument_DestinationTooShort();
359
ThrowHelper
.ThrowArgument_DestinationTooShort();
393
ThrowHelper
.ThrowArgumentOutOfRangeException();
403
ThrowHelper
.ThrowArgumentOutOfRangeException();
565
ThrowHelper
.ThrowInvalidOperation_EnumerationNotPositioned();
System\Numerics\Tensors\netcore\Tensor_1.cs (8)
36
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
44
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
52
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
60
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
69
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
171
ThrowHelper
.ThrowArgument_DestinationTooShort();
183
ThrowHelper
.ThrowArgument_DestinationTooShort();
402
ThrowHelper
.ThrowInvalidOperation_EnumerationNotPositioned();
System\Numerics\Tensors\netcore\Tensor.cs (49)
133
ThrowHelper
.ThrowArgument_ConcatenateTooFewTensors();
140
ThrowHelper
.ThrowArgument_InvalidDimension();
192
ThrowHelper
.ThrowArgument_ConcatenateTooFewTensors();
200
ThrowHelper
.ThrowArgument_InvalidDimension();
219
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
235
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
262
ThrowHelper
.ThrowArgument_DestinationHasOverlappingElements(nameof(destination));
276
ThrowHelper
.ThrowArgument_OverlappingTensorLayoutsNotSupported();
352
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
1546
ThrowHelper
.ThrowArgument_PermuteAxisOrder();
1568
ThrowHelper
.ThrowArgument_InvalidDimension();
1575
ThrowHelper
.ThrowArgument_PermuteAxisOrder();
1601
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1617
ThrowHelper
.ThrowArgument_OnlyOneWildcard();
1625
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1635
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1641
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1673
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1683
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
1709
ThrowHelper
.ThrowArgument_CannotReshapeNonContiguousOrDense();
1741
ThrowHelper
.ThrowArgument_CannotReshapeNonContiguousOrDense();
1773
ThrowHelper
.ThrowArgument_CannotReshapeNonContiguousOrDense();
1868
ThrowHelper
.ThrowArgument_DestinationHasOverlappingElements(nameof(destination));
1891
ThrowHelper
.ThrowArgument_OverlappingTensorLayoutsNotSupported();
2037
ThrowHelper
.ThrowArgument_InvalidDimension();
2060
ThrowHelper
.ThrowArgument_OverlappingTensorLayoutsNotSupported();
2412
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2416
ThrowHelper
.ThrowArgument_SplitNotSplitEvenly();
2477
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2503
ThrowHelper
.ThrowArgument_InvalidSqueezeAxis();
2556
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2582
ThrowHelper
.ThrowArgument_InvalidSqueezeAxis();
2635
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2661
ThrowHelper
.ThrowArgument_InvalidSqueezeAxis();
2759
ThrowHelper
.ThrowArgument_StackTooFewTensors();
2769
ThrowHelper
.ThrowArgument_StackShapesNotSame();
2776
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
2976
ThrowHelper
.ThrowArgument_TransposeTooFewDimensions();
3061
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
3106
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
3151
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
4599
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4662
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4725
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4788
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4851
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4914
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
4977
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
5040
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorDimensionSpan_1.cs (2)
30
ThrowHelper
.ThrowArgumentOutOfRangeException();
56
ThrowHelper
.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\TensorOperation.cs (6)
1036
ThrowHelper
.ThrowArgument_OverlappingTensorLayoutsNotSupported();
1456
ThrowHelper
.ThrowArgument_LengthsNotCompatible();
1463
ThrowHelper
.ThrowArgument_LengthsNotCompatible();
1470
ThrowHelper
.ThrowArgument_LengthsNotCompatible();
1487
ThrowHelper
.ThrowArgument_LengthsNotCompatible();
1520
ThrowHelper
.ThrowArgument_LengthsNotCompatible();
System\Numerics\Tensors\netcore\TensorPrimitives.Average.cs (1)
22
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
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)
132
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 (27)
119
ThrowHelper
.ThrowArgument_LengthIsNegative();
143
ThrowHelper
.ThrowArgument_InvalidTensorShape();
195
ThrowHelper
.ThrowArgument_LengthIsNegative();
202
ThrowHelper
.ThrowArgument_StrideIsNegative();
212
ThrowHelper
.ThrowArgument_InvalidTensorShape();
229
ThrowHelper
.ThrowArgument_InvalidTensorShape();
960
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
1011
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
1028
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
1046
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
1051
ThrowHelper
.ThrowArgument_InvalidTensorShape();
1098
ThrowHelper
.ThrowArgument_InvalidTensorShape();
1111
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
1119
ThrowHelper
.ThrowArgument_StartIndexOutOfBounds();
1124
ThrowHelper
.ThrowArgument_InvalidTensorShape();
1156
ThrowHelper
.ThrowArgument_LengthIsNonZeroForNullReference();
1172
ThrowHelper
.ThrowArgument_LengthIsNonZeroForNullReference();
1177
ThrowHelper
.ThrowArgument_InvalidTensorShape();
1224
ThrowHelper
.ThrowArgumentOutOfRangeException();
1228
ThrowHelper
.ThrowIndexOutOfRangeException();
1249
ThrowHelper
.ThrowArgumentOutOfRangeException();
1253
ThrowHelper
.ThrowIndexOutOfRangeException();
1291
ThrowHelper
.ThrowArgumentOutOfRangeException();
1394
ThrowHelper
.ThrowArgumentOutOfRangeException();
1556
ThrowHelper
.ThrowIndexOutOfRangeException();
1574
ThrowHelper
.ThrowArgumentOutOfRangeException();
1594
ThrowHelper
.ThrowIndexOutOfRangeException();
System\Numerics\Tensors\netcore\TensorSpan_1.cs (10)
36
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
53
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
65
ThrowHelper
.ThrowIfArrayTypeMismatch(array);
97
ThrowHelper
.ThrowIfArrayTypeMismatch<T>(array, isReadOnly: false);
109
ThrowHelper
.ThrowIfArrayTypeMismatch<T>(array, isReadOnly: false);
234
ThrowHelper
.ThrowArgument_DestinationTooShort();
252
ThrowHelper
.ThrowArgument_DestinationTooShort();
283
ThrowHelper
.ThrowArgumentOutOfRangeException();
293
ThrowHelper
.ThrowArgumentOutOfRangeException();
486
ThrowHelper
.ThrowInvalidOperation_EnumerationNotPositioned();
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();