158 references to ThrowHelper
System.Numerics.Tensors (158)
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)
207ThrowHelper.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)
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\ReadOnlyTensorDimensionSpan_1.cs (2)
26ThrowHelper.ThrowArgumentOutOfRangeException(); 51ThrowHelper.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
337ThrowHelper.ThrowArgument_DestinationTooShort(); 356ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Tensor.cs (50)
130ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 133ThrowHelper.ThrowArgument_InvalidDimension(); 144ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 150ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 203ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 206ThrowHelper.ThrowArgument_InvalidDimension(); 221ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 227ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 239ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1365ThrowHelper.ThrowArgument_PermuteAxisOrder(); 1386ThrowHelper.ThrowArgument_InvalidDimension(); 1417ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1426ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1440ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1466ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1490ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1498ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1513ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1541ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1566ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1575ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1590ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1616ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1838ThrowHelper.ThrowArgument_AxisLargerThanRank(); 1840ThrowHelper.ThrowArgument_SplitNotSplitEvenly(); 1893ThrowHelper.ThrowArgument_AxisLargerThanRank(); 1919ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 1960ThrowHelper.ThrowArgument_AxisLargerThanRank(); 1986ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 2027ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2053ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 2092ThrowHelper.ThrowArgument_StackTooFewTensors(); 2097ThrowHelper.ThrowArgument_StackShapesNotSame(); 2103ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2132ThrowHelper.ThrowArgument_StackTooFewTensors(); 2137ThrowHelper.ThrowArgument_StackShapesNotSame(); 2143ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2174ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(tensor)); 2257ThrowHelper.ThrowArgument_TransposeTooFewDimensions(); 2331ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2368ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2405ThrowHelper.ThrowArgument_AxisLargerThanRank(); 4107ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4170ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4233ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4296ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4359ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4422ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4485ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4548ThrowHelper.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)
25ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorPrimitives.Clamp.cs (1)
151ThrowHelper.ThrowArgument_MinGreaterThanMax();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (1)
23ThrowHelper.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)
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)
401ThrowHelper.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)
55ThrowHelper.ThrowArithmetic_NaN(); 82ThrowHelper.ThrowArithmetic_NaN(); 109ThrowHelper.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\TensorShape.cs (23)
120ThrowHelper.ThrowArgument_LengthIsNegative(); 144ThrowHelper.ThrowArgument_InvalidTensorShape(); 196ThrowHelper.ThrowArgument_LengthIsNegative(); 203ThrowHelper.ThrowArgument_StrideIsNegative(); 213ThrowHelper.ThrowArgument_InvalidTensorShape(); 230ThrowHelper.ThrowArgument_InvalidTensorShape(); 759ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 810ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 825ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 839ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 844ThrowHelper.ThrowArgument_InvalidTensorShape(); 881ThrowHelper.ThrowArgument_InvalidTensorShape(); 894ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 902ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 907ThrowHelper.ThrowArgument_InvalidTensorShape(); 929ThrowHelper.ThrowArgument_LengthIsNonZeroForNullReference(); 943ThrowHelper.ThrowArgument_LengthIsNonZeroForNullReference(); 948ThrowHelper.ThrowArgument_InvalidTensorShape(); 995ThrowHelper.ThrowArgumentOutOfRangeException(); 1016ThrowHelper.ThrowArgumentOutOfRangeException(); 1070ThrowHelper.ThrowArgumentOutOfRangeException(); 1224ThrowHelper.ThrowIndexOutOfRangeException(); 1244ThrowHelper.ThrowIndexOutOfRangeException();
System\Numerics\Tensors\netcore\TensorSpan_1.cs (7)
39ThrowHelper.ThrowIfArrayTypeMismatch(array); 56ThrowHelper.ThrowIfArrayTypeMismatch(array); 68ThrowHelper.ThrowIfArrayTypeMismatch(array); 100ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 112ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 237ThrowHelper.ThrowArgument_DestinationTooShort(); 255ThrowHelper.ThrowArgument_DestinationTooShort();
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();