193 references to ThrowHelper
System.Numerics.Tensors (193)
System\NIndex.cs (3)
33
ThrowHelper
.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
75
ThrowHelper
.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
88
ThrowHelper
.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (1)
1150
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.IStatefulUnaryOperator.cs (1)
36
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (6)
37
ThrowHelper
.ThrowArgument_SpansMustHaveSameLength();
42
ThrowHelper
.ThrowArgument_DestinationTooShort();
1514
ThrowHelper
.ThrowArgument_SpansMustHaveSameLength();
1519
ThrowHelper
.ThrowArgument_DestinationTooShort();
2993
ThrowHelper
.ThrowArgument_SpansMustHaveSameLength();
2998
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (2)
31
ThrowHelper
.ThrowArgument_DestinationTooShort(nameof(destination1));
36
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\ReadOnlyTensorSpan.cs (24)
80
ThrowHelper
.ThrowArgumentOutOfRangeException();
86
ThrowHelper
.ThrowArrayTypeMismatchException();
96
ThrowHelper
.ThrowArgument_InvalidStridesAndLengths();
101
ThrowHelper
.ThrowArgument_InvalidStridesAndLengths();
132
ThrowHelper
.ThrowArgument_InvalidStridesAndLengths();
175
ThrowHelper
.ThrowArgumentOutOfRangeException();
180
ThrowHelper
.ThrowArrayTypeMismatchException();
191
ThrowHelper
.ThrowArgumentOutOfRangeException();
196
ThrowHelper
.ThrowArgumentOutOfRangeException();
223
ThrowHelper
.ThrowArgumentOutOfRangeException();
228
ThrowHelper
.ThrowArrayTypeMismatchException();
239
ThrowHelper
.ThrowArgumentOutOfRangeException();
244
ThrowHelper
.ThrowArgumentOutOfRangeException();
285
ThrowHelper
.ThrowArgumentOutOfRangeException();
288
ThrowHelper
.ThrowInvalidTypeWithPointersNotSupported(typeof(T));
299
ThrowHelper
.ThrowArgument_InvalidStridesAndLengths();
329
ThrowHelper
.ThrowIndexOutOfRangeException();
333
ThrowHelper
.ThrowIndexOutOfRangeException();
352
ThrowHelper
.ThrowIndexOutOfRangeException();
356
ThrowHelper
.ThrowIndexOutOfRangeException();
375
ThrowHelper
.ThrowIndexOutOfRangeException();
579
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
733
ThrowHelper
.ThrowIndexOutOfRangeException();
790
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
System\Numerics\Tensors\netcore\Tensor.cs (8)
58
ThrowHelper
.ThrowArgumentOutOfRangeException();
77
ThrowHelper
.ThrowArgument_InvalidStridesAndLengths();
82
ThrowHelper
.ThrowArgument_InvalidStridesAndLengths();
229
ThrowHelper
.ThrowIndexOutOfRangeException();
239
ThrowHelper
.ThrowArgument_SetSliceNoRange(nameof(value));
246
ThrowHelper
.ThrowArgument_SetSliceInvalidShapes(nameof(value));
325
ThrowHelper
.ThrowIndexOutOfRangeException();
348
ThrowHelper
.ThrowArgument_FilterTensorMustEqualTensorLength();
System\Numerics\Tensors\netcore\TensorExtensions.cs (86)
101
ThrowHelper
.ThrowArgument_LengthsNotBroadcastCompatible();
116
ThrowHelper
.ThrowArgument_LengthsNotBroadcastCompatible();
131
ThrowHelper
.ThrowArgument_LengthsNotBroadcastCompatible();
152
ThrowHelper
.ThrowArgument_LengthsNotBroadcastCompatible();
195
ThrowHelper
.ThrowArgument_LengthsNotBroadcastCompatible();
238
ThrowHelper
.ThrowArgument_LengthsNotBroadcastCompatible();
285
ThrowHelper
.ThrowArgument_ConcatenateTooFewTensors();
288
ThrowHelper
.ThrowArgument_InvalidAxis();
303
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
309
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
353
ThrowHelper
.ThrowArgument_ConcatenateTooFewTensors();
356
ThrowHelper
.ThrowArgument_InvalidAxis();
371
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
377
ThrowHelper
.ThrowArgument_InvalidConcatenateShape();
389
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
487
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
495
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
554
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
763
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(filter));
789
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(filter));
791
ThrowHelper
.ThrowArgument_1DTensorRequired(nameof(values));
858
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
866
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
929
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
989
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
1067
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
1075
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
1138
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
1198
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
1770
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
1778
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
1841
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
1901
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
1979
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
1987
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
2050
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
2110
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(destination));
2672
ThrowHelper
.ThrowArgument_PermuteAxisOrder();
2737
ThrowHelper
.ThrowArgument_CannotReshapeNonContiguousOrDense();
2745
ThrowHelper
.ThrowArgument_OnlyOneWildcard();
2760
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
2781
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
2805
ThrowHelper
.ThrowArgument_CannotReshapeNonContiguousOrDense();
2813
ThrowHelper
.ThrowArgument_OnlyOneWildcard();
2828
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
2851
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
2876
ThrowHelper
.ThrowArgument_CannotReshapeNonContiguousOrDense();
2884
ThrowHelper
.ThrowArgument_OnlyOneWildcard();
2899
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
2920
ThrowHelper
.ThrowArgument_InvalidReshapeDimensions();
3166
ThrowHelper
.ThrowArgument_SetSliceNoRange(nameof(values));
3173
ThrowHelper
.ThrowArgument_SetSliceInvalidShapes(nameof(values));
3176
ThrowHelper
.ThrowArgument_SetSliceInvalidShapes(nameof(values));
3195
ThrowHelper
.ThrowArgument_SplitNotSplitEvenly();
3281
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
3303
ThrowHelper
.ThrowArgument_InvalidSqueezeAxis();
3337
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
3359
ThrowHelper
.ThrowArgument_InvalidSqueezeAxis();
3393
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
3415
ThrowHelper
.ThrowArgument_InvalidSqueezeAxis();
3450
ThrowHelper
.ThrowArgument_StackTooFewTensors();
3455
ThrowHelper
.ThrowArgument_StackShapesNotSame();
3488
ThrowHelper
.ThrowArgument_StackTooFewTensors();
3493
ThrowHelper
.ThrowArgument_StackShapesNotSame();
3564
ThrowHelper
.ThrowArgument_DimensionsNotSame(nameof(tensor));
3617
ThrowHelper
.ThrowArgument_TransposeTooFewDimensions();
3682
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
3719
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
3756
ThrowHelper
.ThrowArgument_AxisLargerThanRank();
4661
ThrowHelper
.ThrowArgument_2DTensorRequired(nameof(x));
4664
ThrowHelper
.ThrowArgument_2DTensorRequired(nameof(y));
4667
ThrowHelper
.ThrowArgument_IncompatibleDimensions(x.Lengths[1], y.Lengths[1]);
4691
ThrowHelper
.ThrowArgument_2DTensorRequired(nameof(x));
4694
ThrowHelper
.ThrowArgument_2DTensorRequired(nameof(y));
4697
ThrowHelper
.ThrowArgument_IncompatibleDimensions(x.Lengths[1], y.Lengths[1]);
4703
ThrowHelper
.ThrowArgument_IncompatibleDimensions(x.Lengths[1], y.Lengths[1]);
6259
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
6290
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
6321
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
6371
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
6398
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
6425
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
6839
ThrowHelper
.ThrowArgument_LengthsNotBroadcastCompatible();
6922
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
6975
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
7027
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (1)
23
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (2)
40
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
45
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.Max.cs (1)
380
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.SoftMax.cs (2)
29
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
34
ThrowHelper
.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorSpan.cs (24)
82
ThrowHelper
.ThrowArgumentOutOfRangeException();
88
ThrowHelper
.ThrowArrayTypeMismatchException();
98
ThrowHelper
.ThrowArgument_InvalidStridesAndLengths();
103
ThrowHelper
.ThrowArgument_InvalidStridesAndLengths();
135
ThrowHelper
.ThrowArgument_InvalidStridesAndLengths();
177
ThrowHelper
.ThrowArgumentOutOfRangeException();
182
ThrowHelper
.ThrowArrayTypeMismatchException();
193
ThrowHelper
.ThrowArgumentOutOfRangeException();
198
ThrowHelper
.ThrowArgumentOutOfRangeException();
227
ThrowHelper
.ThrowArgumentOutOfRangeException();
232
ThrowHelper
.ThrowArrayTypeMismatchException();
240
ThrowHelper
.ThrowArgumentOutOfRangeException();
245
ThrowHelper
.ThrowArgumentOutOfRangeException();
286
ThrowHelper
.ThrowArgumentOutOfRangeException();
289
ThrowHelper
.ThrowInvalidTypeWithPointersNotSupported(typeof(T));
301
ThrowHelper
.ThrowArgument_InvalidStridesAndLengths();
331
ThrowHelper
.ThrowIndexOutOfRangeException();
335
ThrowHelper
.ThrowIndexOutOfRangeException();
356
ThrowHelper
.ThrowIndexOutOfRangeException();
360
ThrowHelper
.ThrowIndexOutOfRangeException();
608
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
723
ThrowHelper
.ThrowIndexOutOfRangeException();
768
ThrowHelper
.ThrowIndexOutOfRangeException();
802
ThrowHelper
.ThrowArgumentException_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorSpanHelpers.cs (10)
27
ThrowHelper
.ThrowArgumentOutOfRangeException();
32
ThrowHelper
.ThrowArgumentOutOfRangeException();
99
ThrowHelper
.ThrowIndexOutOfRangeException();
136
ThrowHelper
.ThrowIndexOutOfRangeException();
161
ThrowHelper
.ThrowIndexOutOfRangeException();
184
ThrowHelper
.ThrowIndexOutOfRangeException();
194
ThrowHelper
.ThrowArgument_InvalidStridesAndLengths();
200
ThrowHelper
.ThrowArgument_StrideLessThan0();
207
ThrowHelper
.ThrowArgument_StrideLessThan0();
209
ThrowHelper
.ThrowArgument_StrideLessThan0();
System\Numerics\Tensors\TensorPrimitives.Helpers.cs (1)
21
ThrowHelper
.ThrowArgument_InputAndDestinationSpanMustNotOverlap();
System\Numerics\Tensors\TensorPrimitives.Single.cs (7)
203
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
715
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
746
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
777
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
802
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
852
ThrowHelper
.ThrowArgument_SpansMustBeNonEmpty();
857
ThrowHelper
.ThrowArgument_DestinationTooShort();