163 references to ThrowHelper
System.Numerics.Tensors (163)
System\Buffers\NIndex.cs (3)
32ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException(); 74ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException(); 87ThrowHelper.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)
206ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IStatefulUnaryOperator.cs (1)
36ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (5)
48ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 53ThrowHelper.ThrowArgument_DestinationTooShort(); 1525ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 1530ThrowHelper.ThrowArgument_DestinationTooShort(); 3018ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (7)
53ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination1)); 58ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination2)); 180ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 185ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination1)); 190ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination2)); 369ThrowHelper.ThrowArgument_DestinationTooShort(nameof(destination1)); 374ThrowHelper.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\ReadOnlyTensorDimensionSpan_1.cs (2)
26ThrowHelper.ThrowArgumentOutOfRangeException(); 51ThrowHelper.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (4)
337ThrowHelper.ThrowArgument_DestinationTooShort(); 356ThrowHelper.ThrowArgument_DestinationTooShort(); 390ThrowHelper.ThrowArgumentOutOfRangeException(); 400ThrowHelper.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\Tensor.cs (50)
129ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 132ThrowHelper.ThrowArgument_InvalidDimension(); 143ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 149ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 202ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 205ThrowHelper.ThrowArgument_InvalidDimension(); 220ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 226ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 238ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1277ThrowHelper.ThrowArgument_PermuteAxisOrder(); 1298ThrowHelper.ThrowArgument_InvalidDimension(); 1329ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1338ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1352ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1378ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1402ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1410ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1425ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1453ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1478ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1487ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1502ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1528ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1750ThrowHelper.ThrowArgument_AxisLargerThanRank(); 1752ThrowHelper.ThrowArgument_SplitNotSplitEvenly(); 1805ThrowHelper.ThrowArgument_AxisLargerThanRank(); 1831ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 1872ThrowHelper.ThrowArgument_AxisLargerThanRank(); 1898ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 1939ThrowHelper.ThrowArgument_AxisLargerThanRank(); 1965ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 2004ThrowHelper.ThrowArgument_StackTooFewTensors(); 2009ThrowHelper.ThrowArgument_StackShapesNotSame(); 2015ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2044ThrowHelper.ThrowArgument_StackTooFewTensors(); 2049ThrowHelper.ThrowArgument_StackShapesNotSame(); 2055ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2086ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(tensor)); 2169ThrowHelper.ThrowArgument_TransposeTooFewDimensions(); 2243ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2280ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2317ThrowHelper.ThrowArgument_AxisLargerThanRank(); 4019ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4082ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4145ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4208ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4271ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4334ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4397ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4460ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\Tensor_1.cs (4)
57ThrowHelper.ThrowIfArrayTypeMismatch(array); 66ThrowHelper.ThrowIfArrayTypeMismatch(array); 168ThrowHelper.ThrowArgument_DestinationTooShort(); 180ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorDimensionSpan_1.cs (2)
23ThrowHelper.ThrowArgumentOutOfRangeException(); 48ThrowHelper.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\TensorOperation.cs (5)
325ThrowHelper.ThrowArgument_LengthsNotCompatible(); 332ThrowHelper.ThrowArgument_LengthsNotCompatible(); 339ThrowHelper.ThrowArgument_LengthsNotCompatible(); 356ThrowHelper.ThrowArgument_LengthsNotCompatible(); 375ThrowHelper.ThrowArgument_LengthsNotCompatible();
System\Numerics\Tensors\netcore\TensorPrimitives.Average.cs (1)
22ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.Clamp.cs (1)
149ThrowHelper.ThrowArgument_MinGreaterThanMax();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (1)
21ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (4)
49ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 54ThrowHelper.ThrowArgument_SpansMustHaveSameLength(); 188ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 193ThrowHelper.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)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsComplexNumber.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsFinite.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsImaginaryNumber.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsInteger.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsNaN.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegative.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.IsRealNumber.cs (1)
25ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (1)
399ThrowHelper.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)
53ThrowHelper.ThrowArithmetic_NaN(); 80ThrowHelper.ThrowArithmetic_NaN(); 107ThrowHelper.ThrowArithmetic_NaN();
System\Numerics\Tensors\netcore\TensorPrimitives.SoftMax.cs (2)
29ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 34ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\TensorPrimitives.StdDev.cs (1)
24ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorShape.cs (24)
115ThrowHelper.ThrowArgument_LengthIsNegative(); 139ThrowHelper.ThrowArgument_InvalidTensorShape(); 191ThrowHelper.ThrowArgument_LengthIsNegative(); 198ThrowHelper.ThrowArgument_StrideIsNegative(); 208ThrowHelper.ThrowArgument_InvalidTensorShape(); 225ThrowHelper.ThrowArgument_InvalidTensorShape(); 754ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 805ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 820ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 834ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 839ThrowHelper.ThrowArgument_InvalidTensorShape(); 876ThrowHelper.ThrowArgument_InvalidTensorShape(); 889ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 897ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 902ThrowHelper.ThrowArgument_InvalidTensorShape(); 924ThrowHelper.ThrowArgument_LengthIsNonZeroForNullReference(); 938ThrowHelper.ThrowArgument_LengthIsNonZeroForNullReference(); 943ThrowHelper.ThrowArgument_InvalidTensorShape(); 990ThrowHelper.ThrowArgumentOutOfRangeException(); 1011ThrowHelper.ThrowArgumentOutOfRangeException(); 1040ThrowHelper.ThrowArgumentOutOfRangeException(); 1125ThrowHelper.ThrowArgumentOutOfRangeException(); 1279ThrowHelper.ThrowIndexOutOfRangeException(); 1299ThrowHelper.ThrowIndexOutOfRangeException();
System\Numerics\Tensors\netcore\TensorSpan_1.cs (9)
39ThrowHelper.ThrowIfArrayTypeMismatch(array); 56ThrowHelper.ThrowIfArrayTypeMismatch(array); 68ThrowHelper.ThrowIfArrayTypeMismatch(array); 100ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 112ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 237ThrowHelper.ThrowArgument_DestinationTooShort(); 255ThrowHelper.ThrowArgument_DestinationTooShort(); 286ThrowHelper.ThrowArgumentOutOfRangeException(); 296ThrowHelper.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\TensorPrimitives.Helpers.cs (2)
20ThrowHelper.ThrowArgument_InputAndDestinationSpanMustNotOverlap(); 35ThrowHelper.ThrowArgument_DestinationSpansMustNotOverlap();
System\Numerics\Tensors\TensorPrimitives.Single.cs (7)
200ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 712ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 743ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 774ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 799ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 849ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 854ThrowHelper.ThrowArgument_DestinationTooShort();