173 references to ThrowHelper
System.Numerics.Tensors (173)
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)
189ThrowHelper.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)
30ThrowHelper.ThrowArgumentOutOfRangeException(); 56ThrowHelper.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (7)
154ThrowHelper.ThrowIfArrayTypeMismatch<T>(array, isReadOnly: true); 184ThrowHelper.ThrowIfArrayTypeMismatch<T>(array, isReadOnly: true); 340ThrowHelper.ThrowArgument_DestinationTooShort(); 359ThrowHelper.ThrowArgument_DestinationTooShort(); 393ThrowHelper.ThrowArgumentOutOfRangeException(); 403ThrowHelper.ThrowArgumentOutOfRangeException(); 565ThrowHelper.ThrowInvalidOperation_EnumerationNotPositioned();
System\Numerics\Tensors\netcore\Tensor_1.cs (8)
36ThrowHelper.ThrowIfArrayTypeMismatch(array); 44ThrowHelper.ThrowIfArrayTypeMismatch(array); 52ThrowHelper.ThrowIfArrayTypeMismatch(array); 60ThrowHelper.ThrowIfArrayTypeMismatch(array); 69ThrowHelper.ThrowIfArrayTypeMismatch(array); 171ThrowHelper.ThrowArgument_DestinationTooShort(); 183ThrowHelper.ThrowArgument_DestinationTooShort(); 402ThrowHelper.ThrowInvalidOperation_EnumerationNotPositioned();
System\Numerics\Tensors\netcore\Tensor.cs (49)
133ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 140ThrowHelper.ThrowArgument_InvalidDimension(); 192ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 200ThrowHelper.ThrowArgument_InvalidDimension(); 219ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 235ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 262ThrowHelper.ThrowArgument_DestinationHasOverlappingElements(nameof(destination)); 276ThrowHelper.ThrowArgument_OverlappingTensorLayoutsNotSupported(); 352ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 1546ThrowHelper.ThrowArgument_PermuteAxisOrder(); 1568ThrowHelper.ThrowArgument_InvalidDimension(); 1575ThrowHelper.ThrowArgument_PermuteAxisOrder(); 1601ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1617ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1625ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1635ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1641ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1673ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1683ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1709ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1741ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1773ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1868ThrowHelper.ThrowArgument_DestinationHasOverlappingElements(nameof(destination)); 1891ThrowHelper.ThrowArgument_OverlappingTensorLayoutsNotSupported(); 2037ThrowHelper.ThrowArgument_InvalidDimension(); 2060ThrowHelper.ThrowArgument_OverlappingTensorLayoutsNotSupported(); 2412ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2416ThrowHelper.ThrowArgument_SplitNotSplitEvenly(); 2477ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2503ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 2556ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2582ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 2635ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2661ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 2759ThrowHelper.ThrowArgument_StackTooFewTensors(); 2769ThrowHelper.ThrowArgument_StackShapesNotSame(); 2776ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2976ThrowHelper.ThrowArgument_TransposeTooFewDimensions(); 3061ThrowHelper.ThrowArgument_AxisLargerThanRank(); 3106ThrowHelper.ThrowArgument_AxisLargerThanRank(); 3151ThrowHelper.ThrowArgument_AxisLargerThanRank(); 4599ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4662ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4725ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4788ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4851ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4914ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4977ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 5040ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\TensorDimensionSpan_1.cs (2)
30ThrowHelper.ThrowArgumentOutOfRangeException(); 56ThrowHelper.ThrowArgumentOutOfRangeException();
System\Numerics\Tensors\netcore\TensorOperation.cs (6)
1036ThrowHelper.ThrowArgument_OverlappingTensorLayoutsNotSupported(); 1456ThrowHelper.ThrowArgument_LengthsNotCompatible(); 1463ThrowHelper.ThrowArgument_LengthsNotCompatible(); 1470ThrowHelper.ThrowArgument_LengthsNotCompatible(); 1487ThrowHelper.ThrowArgument_LengthsNotCompatible(); 1520ThrowHelper.ThrowArgument_LengthsNotCompatible();
System\Numerics\Tensors\netcore\TensorPrimitives.Average.cs (1)
22ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
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)
132ThrowHelper.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 (27)
119ThrowHelper.ThrowArgument_LengthIsNegative(); 143ThrowHelper.ThrowArgument_InvalidTensorShape(); 195ThrowHelper.ThrowArgument_LengthIsNegative(); 202ThrowHelper.ThrowArgument_StrideIsNegative(); 212ThrowHelper.ThrowArgument_InvalidTensorShape(); 229ThrowHelper.ThrowArgument_InvalidTensorShape(); 960ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 1011ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 1028ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 1046ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 1051ThrowHelper.ThrowArgument_InvalidTensorShape(); 1098ThrowHelper.ThrowArgument_InvalidTensorShape(); 1111ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 1119ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 1124ThrowHelper.ThrowArgument_InvalidTensorShape(); 1156ThrowHelper.ThrowArgument_LengthIsNonZeroForNullReference(); 1172ThrowHelper.ThrowArgument_LengthIsNonZeroForNullReference(); 1177ThrowHelper.ThrowArgument_InvalidTensorShape(); 1224ThrowHelper.ThrowArgumentOutOfRangeException(); 1228ThrowHelper.ThrowIndexOutOfRangeException(); 1249ThrowHelper.ThrowArgumentOutOfRangeException(); 1253ThrowHelper.ThrowIndexOutOfRangeException(); 1291ThrowHelper.ThrowArgumentOutOfRangeException(); 1394ThrowHelper.ThrowArgumentOutOfRangeException(); 1556ThrowHelper.ThrowIndexOutOfRangeException(); 1574ThrowHelper.ThrowArgumentOutOfRangeException(); 1594ThrowHelper.ThrowIndexOutOfRangeException();
System\Numerics\Tensors\netcore\TensorSpan_1.cs (10)
36ThrowHelper.ThrowIfArrayTypeMismatch(array); 53ThrowHelper.ThrowIfArrayTypeMismatch(array); 65ThrowHelper.ThrowIfArrayTypeMismatch(array); 97ThrowHelper.ThrowIfArrayTypeMismatch<T>(array, isReadOnly: false); 109ThrowHelper.ThrowIfArrayTypeMismatch<T>(array, isReadOnly: false); 234ThrowHelper.ThrowArgument_DestinationTooShort(); 252ThrowHelper.ThrowArgument_DestinationTooShort(); 283ThrowHelper.ThrowArgumentOutOfRangeException(); 293ThrowHelper.ThrowArgumentOutOfRangeException(); 486ThrowHelper.ThrowInvalidOperation_EnumerationNotPositioned();
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();