193 references to ThrowHelper
System.Numerics.Tensors (193)
System\NIndex.cs (3)
33ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException(); 75ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException(); 88ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (1)
1150ThrowHelper.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.IStatefulUnaryOperator.cs (1)
36ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (6)
37ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 42ThrowHelper.ThrowArgument_DestinationTooShort(); 1514ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 1519ThrowHelper.ThrowArgument_DestinationTooShort(); 2993ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 2998ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (2)
31ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination1)); 36ThrowHelper.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)
101ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 116ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 131ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 152ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 195ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 238ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 285ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 288ThrowHelper.ThrowArgument_InvalidAxis(); 303ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 309ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 353ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 356ThrowHelper.ThrowArgument_InvalidAxis(); 371ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 377ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 389ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 487ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 495ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 554ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 763ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(filter)); 789ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(filter)); 791ThrowHelper.ThrowArgument_1DTensorRequired(nameof(values)); 858ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 866ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 929ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 989ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1067ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1075ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1138ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1198ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1770ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1778ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1841ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1901ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1979ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1987ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 2050ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 2110ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 2672ThrowHelper.ThrowArgument_PermuteAxisOrder(); 2737ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 2745ThrowHelper.ThrowArgument_OnlyOneWildcard(); 2760ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 2781ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 2805ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 2813ThrowHelper.ThrowArgument_OnlyOneWildcard(); 2828ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 2851ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 2876ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 2884ThrowHelper.ThrowArgument_OnlyOneWildcard(); 2899ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 2920ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 3166ThrowHelper.ThrowArgument_SetSliceNoRange(nameof(values)); 3173ThrowHelper.ThrowArgument_SetSliceInvalidShapes(nameof(values)); 3176ThrowHelper.ThrowArgument_SetSliceInvalidShapes(nameof(values)); 3195ThrowHelper.ThrowArgument_SplitNotSplitEvenly(); 3281ThrowHelper.ThrowArgument_AxisLargerThanRank(); 3303ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 3337ThrowHelper.ThrowArgument_AxisLargerThanRank(); 3359ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 3393ThrowHelper.ThrowArgument_AxisLargerThanRank(); 3415ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 3450ThrowHelper.ThrowArgument_StackTooFewTensors(); 3455ThrowHelper.ThrowArgument_StackShapesNotSame(); 3488ThrowHelper.ThrowArgument_StackTooFewTensors(); 3493ThrowHelper.ThrowArgument_StackShapesNotSame(); 3564ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(tensor)); 3617ThrowHelper.ThrowArgument_TransposeTooFewDimensions(); 3682ThrowHelper.ThrowArgument_AxisLargerThanRank(); 3719ThrowHelper.ThrowArgument_AxisLargerThanRank(); 3756ThrowHelper.ThrowArgument_AxisLargerThanRank(); 4661ThrowHelper.ThrowArgument_2DTensorRequired(nameof(x)); 4664ThrowHelper.ThrowArgument_2DTensorRequired(nameof(y)); 4667ThrowHelper.ThrowArgument_IncompatibleDimensions(x.Lengths[1], y.Lengths[1]); 4691ThrowHelper.ThrowArgument_2DTensorRequired(nameof(x)); 4694ThrowHelper.ThrowArgument_2DTensorRequired(nameof(y)); 4697ThrowHelper.ThrowArgument_IncompatibleDimensions(x.Lengths[1], y.Lengths[1]); 4703ThrowHelper.ThrowArgument_IncompatibleDimensions(x.Lengths[1], y.Lengths[1]); 6259ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6290ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6321ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6371ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6398ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6425ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6839ThrowHelper.ThrowArgument_LengthsNotBroadcastCompatible(); 6922ThrowHelper.ThrowArgumentException_DestinationTooShort(); 6975ThrowHelper.ThrowArgumentException_DestinationTooShort(); 7027ThrowHelper.ThrowArgumentException_DestinationTooShort();
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.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.SoftMax.cs (2)
29ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 34ThrowHelper.ThrowArgument_DestinationTooShort();
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 (1)
21ThrowHelper.ThrowArgument_InputAndDestinationSpanMustNotOverlap();
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();