213 references to ThrowHelper
System.Numerics.Tensors (213)
System\NIndex.cs (3)
33ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException(); 75ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException(); 88ThrowHelper.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)
207ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IStatefulUnaryOperator.cs (1)
36ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (5)
46ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 51ThrowHelper.ThrowArgument_DestinationTooShort(); 1523ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 1528ThrowHelper.ThrowArgument_DestinationTooShort(); 3016ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (7)
54ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination1)); 59ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination2)); 181ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 186ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination1)); 191ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination2)); 370ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination1)); 375ThrowHelper.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\ReadOnlyTensorSpan.cs (24)
80ThrowHelper.ThrowArgumentOutOfRangeException(); 86ThrowHelper.ThrowArrayTypeMismatchException(); 96ThrowHelper.ThrowArgument_InvalidStridesAndLengths(); 101ThrowHelper.ThrowArgument_InvalidStridesAndLengths(); 132ThrowHelper.ThrowArgument_InvalidStridesAndLengths(); 175ThrowHelper.ThrowArgumentOutOfRangeException(); 180ThrowHelper.ThrowArrayTypeMismatchException(); 191ThrowHelper.ThrowArgumentOutOfRangeException(); 196ThrowHelper.ThrowArgumentOutOfRangeException(); 223ThrowHelper.ThrowArgumentOutOfRangeException(); 228ThrowHelper.ThrowArrayTypeMismatchException(); 239ThrowHelper.ThrowArgumentOutOfRangeException(); 244ThrowHelper.ThrowArgumentOutOfRangeException(); 285ThrowHelper.ThrowArgumentOutOfRangeException(); 288ThrowHelper.ThrowInvalidTypeWithPointersNotSupported(typeof(T)); 299ThrowHelper.ThrowArgument_InvalidStridesAndLengths(); 329ThrowHelper.ThrowIndexOutOfRangeException(); 333ThrowHelper.ThrowIndexOutOfRangeException(); 352ThrowHelper.ThrowIndexOutOfRangeException(); 356ThrowHelper.ThrowIndexOutOfRangeException(); 375ThrowHelper.ThrowIndexOutOfRangeException(); 579ThrowHelper.ThrowArgumentException_DestinationTooShort(); 733ThrowHelper.ThrowIndexOutOfRangeException(); 790ThrowHelper.ThrowArgumentException_DestinationTooShort();
System\Numerics\Tensors\netcore\Tensor.cs (8)
58ThrowHelper.ThrowArgumentOutOfRangeException(); 77ThrowHelper.ThrowArgument_InvalidStridesAndLengths(); 82ThrowHelper.ThrowArgument_InvalidStridesAndLengths(); 229ThrowHelper.ThrowIndexOutOfRangeException(); 239ThrowHelper.ThrowArgument_SetSliceNoRange(nameof(value)); 246ThrowHelper.ThrowArgument_SetSliceInvalidShapes(nameof(value)); 325ThrowHelper.ThrowIndexOutOfRangeException(); 348ThrowHelper.ThrowArgument_FilterTensorMustEqualTensorLength();
System\Numerics\Tensors\netcore\TensorExtensions.cs (86)
87ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 102ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 117ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 138ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 181ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 224ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 271ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 274ThrowHelper.ThrowArgument_InvalidAxis(); 289ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 295ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 339ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 342ThrowHelper.ThrowArgument_InvalidAxis(); 357ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 363ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 375ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 473ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 481ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 540ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 749ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(filter)); 775ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(filter)); 777ThrowHelper.ThrowArgument_1DTensorRequired(nameof(values)); 844ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 852ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 915ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 975ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1053ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1061ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1124ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1184ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1756ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1764ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1827ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1887ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1965ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1973ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 2036ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 2096ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 2658ThrowHelper.ThrowArgument_PermuteAxisOrder(); 2723ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 2731ThrowHelper.ThrowArgument_OnlyOneWildcard(); 2746ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 2767ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 2791ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 2799ThrowHelper.ThrowArgument_OnlyOneWildcard(); 2814ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 2837ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 2862ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 2870ThrowHelper.ThrowArgument_OnlyOneWildcard(); 2885ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 2906ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 3152ThrowHelper.ThrowArgument_SetSliceNoRange(nameof(values)); 3159ThrowHelper.ThrowArgument_SetSliceInvalidShapes(nameof(values)); 3162ThrowHelper.ThrowArgument_SetSliceInvalidShapes(nameof(values)); 3181ThrowHelper.ThrowArgument_SplitNotSplitEvenly(); 3267ThrowHelper.ThrowArgument_AxisLargerThanRank(); 3289ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 3323ThrowHelper.ThrowArgument_AxisLargerThanRank(); 3345ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 3379ThrowHelper.ThrowArgument_AxisLargerThanRank(); 3401ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 3436ThrowHelper.ThrowArgument_StackTooFewTensors(); 3441ThrowHelper.ThrowArgument_StackShapesNotSame(); 3474ThrowHelper.ThrowArgument_StackTooFewTensors(); 3479ThrowHelper.ThrowArgument_StackShapesNotSame(); 3520ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(tensor)); 3573ThrowHelper.ThrowArgument_TransposeTooFewDimensions(); 3638ThrowHelper.ThrowArgument_AxisLargerThanRank(); 3675ThrowHelper.ThrowArgument_AxisLargerThanRank(); 3712ThrowHelper.ThrowArgument_AxisLargerThanRank(); 4630ThrowHelper.ThrowArgument_2DTensorRequired(nameof(x)); 4633ThrowHelper.ThrowArgument_2DTensorRequired(nameof(y)); 4636ThrowHelper.ThrowArgument_IncompatibleDimensions(x.Lengths[1], y.Lengths[1]); 4660ThrowHelper.ThrowArgument_2DTensorRequired(nameof(x)); 4663ThrowHelper.ThrowArgument_2DTensorRequired(nameof(y)); 4666ThrowHelper.ThrowArgument_IncompatibleDimensions(x.Lengths[1], y.Lengths[1]); 4672ThrowHelper.ThrowArgument_IncompatibleDimensions(x.Lengths[1], y.Lengths[1]); 6228ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6259ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6290ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6340ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6367ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6394ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6834ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 6917ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6970ThrowHelper.ThrowArgumentException_DestinationTooShort(); 7022ThrowHelper.ThrowArgumentException_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.Average.cs (1)
25ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.Clamp.cs (1)
123ThrowHelper.ThrowArgument_MinGreaterThanMax();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (1)
23ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (2)
40ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 45ThrowHelper.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)
29ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsComplexNumber.cs (1)
29ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsFinite.cs (1)
29ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsImaginaryNumber.cs (1)
29ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsInteger.cs (1)
28ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsNaN.cs (1)
29ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegative.cs (1)
28ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsRealNumber.cs (1)
29ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (1)
380ThrowHelper.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)
54ThrowHelper.ThrowArithmetic_NaN(); 81ThrowHelper.ThrowArithmetic_NaN(); 108ThrowHelper.ThrowArithmetic_NaN();
System\Numerics\Tensors\netcore\TensorPrimitives.SoftMax.cs (2)
29ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 34ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.StdDev.cs (1)
25ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorSpan.cs (24)
82ThrowHelper.ThrowArgumentOutOfRangeException(); 88ThrowHelper.ThrowArrayTypeMismatchException(); 98ThrowHelper.ThrowArgument_InvalidStridesAndLengths(); 103ThrowHelper.ThrowArgument_InvalidStridesAndLengths(); 135ThrowHelper.ThrowArgument_InvalidStridesAndLengths(); 177ThrowHelper.ThrowArgumentOutOfRangeException(); 182ThrowHelper.ThrowArrayTypeMismatchException(); 193ThrowHelper.ThrowArgumentOutOfRangeException(); 198ThrowHelper.ThrowArgumentOutOfRangeException(); 227ThrowHelper.ThrowArgumentOutOfRangeException(); 232ThrowHelper.ThrowArrayTypeMismatchException(); 240ThrowHelper.ThrowArgumentOutOfRangeException(); 245ThrowHelper.ThrowArgumentOutOfRangeException(); 286ThrowHelper.ThrowArgumentOutOfRangeException(); 289ThrowHelper.ThrowInvalidTypeWithPointersNotSupported(typeof(T)); 301ThrowHelper.ThrowArgument_InvalidStridesAndLengths(); 331ThrowHelper.ThrowIndexOutOfRangeException(); 335ThrowHelper.ThrowIndexOutOfRangeException(); 356ThrowHelper.ThrowIndexOutOfRangeException(); 360ThrowHelper.ThrowIndexOutOfRangeException(); 608ThrowHelper.ThrowArgumentException_DestinationTooShort(); 723ThrowHelper.ThrowIndexOutOfRangeException(); 768ThrowHelper.ThrowIndexOutOfRangeException(); 802ThrowHelper.ThrowArgumentException_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorSpanHelpers.cs (10)
27ThrowHelper.ThrowArgumentOutOfRangeException(); 32ThrowHelper.ThrowArgumentOutOfRangeException(); 99ThrowHelper.ThrowIndexOutOfRangeException(); 136ThrowHelper.ThrowIndexOutOfRangeException(); 161ThrowHelper.ThrowIndexOutOfRangeException(); 184ThrowHelper.ThrowIndexOutOfRangeException(); 194ThrowHelper.ThrowArgument_InvalidStridesAndLengths(); 200ThrowHelper.ThrowArgument_StrideLessThan0(); 207ThrowHelper.ThrowArgument_StrideLessThan0(); 209ThrowHelper.ThrowArgument_StrideLessThan0();
System\Numerics\Tensors\TensorPrimitives.Helpers.cs (2)
21ThrowHelper.ThrowArgument_InputAndDestinationSpanMustNotOverlap(); 36ThrowHelper.ThrowArgument_DestinationSpansMustNotOverlap();
System\Numerics\Tensors\TensorPrimitives.Single.cs (7)
203ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 715ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 746ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 777ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 802ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 852ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 857ThrowHelper.ThrowArgument_DestinationTooShort();