158 references to ThrowHelper
System.Numerics.Tensors (158)
System\Buffers\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_1.cs (2)
362ThrowHelper.ThrowArgument_DestinationTooShort(); 381ThrowHelper.ThrowArgument_DestinationTooShort();
System\Numerics\Tensors\netcore\Tensor.cs (50)
133ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 136ThrowHelper.ThrowArgument_InvalidDimension(); 147ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 153ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 206ThrowHelper.ThrowArgument_ConcatenateTooFewTensors(); 209ThrowHelper.ThrowArgument_InvalidDimension(); 224ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 230ThrowHelper.ThrowArgument_InvalidConcatenateShape(); 242ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(destination)); 1389ThrowHelper.ThrowArgument_PermuteAxisOrder(); 1412ThrowHelper.ThrowArgument_InvalidDimension(); 1445ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1454ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1468ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1494ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1518ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1526ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1541ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1569ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1594ThrowHelper.ThrowArgument_CannotReshapeNonContiguousOrDense(); 1603ThrowHelper.ThrowArgument_OnlyOneWildcard(); 1618ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1644ThrowHelper.ThrowArgument_InvalidReshapeDimensions(); 1866ThrowHelper.ThrowArgument_AxisLargerThanRank(); 1868ThrowHelper.ThrowArgument_SplitNotSplitEvenly(); 1918ThrowHelper.ThrowArgument_AxisLargerThanRank(); 1953ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 2000ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2035ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 2082ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2117ThrowHelper.ThrowArgument_InvalidSqueezeAxis(); 2190ThrowHelper.ThrowArgument_StackTooFewTensors(); 2195ThrowHelper.ThrowArgument_StackShapesNotSame(); 2201ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2230ThrowHelper.ThrowArgument_StackTooFewTensors(); 2235ThrowHelper.ThrowArgument_StackShapesNotSame(); 2241ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2272ThrowHelper.ThrowArgument_DimensionsNotSame(nameof(tensor)); 2355ThrowHelper.ThrowArgument_TransposeTooFewDimensions(); 2436ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2473ThrowHelper.ThrowArgument_AxisLargerThanRank(); 2510ThrowHelper.ThrowArgument_AxisLargerThanRank(); 4212ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4275ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4338ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4401ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4464ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4527ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4590ThrowHelper.ThrowArgument_SpansMustBeNonEmpty(); 4653ThrowHelper.ThrowArgument_SpansMustBeNonEmpty();
System\Numerics\Tensors\netcore\Tensor_1.cs (4)
96ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 107ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 213ThrowHelper.ThrowArgument_DestinationTooShort(); 225ThrowHelper.ThrowArgument_DestinationTooShort();
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)
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\TensorShape.cs (28)
126ThrowHelper.ThrowArgument_InvalidTensorShape(); 143ThrowHelper.ThrowArgument_InvalidTensorShape(); 172ThrowHelper.ThrowArgument_LengthIsNegative(); 198ThrowHelper.ThrowArgument_InvalidTensorShape(); 239ThrowHelper.ThrowArgument_LengthIsNegative(); 246ThrowHelper.ThrowArgument_StrideIsNegative(); 256ThrowHelper.ThrowArgument_InvalidTensorShape(); 268ThrowHelper.ThrowArgument_InvalidTensorShape(); 812ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 863ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 878ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 892ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 897ThrowHelper.ThrowArgument_InvalidTensorShape(); 938ThrowHelper.ThrowArgument_InvalidTensorShape(); 953ThrowHelper.ThrowArgument_InvalidTensorShape(); 966ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 974ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 979ThrowHelper.ThrowArgument_InvalidTensorShape(); 992ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 1000ThrowHelper.ThrowArgument_StartIndexOutOfBounds(); 1005ThrowHelper.ThrowArgument_InvalidTensorShape(); 1026ThrowHelper.ThrowArgument_LengthIsNonZeroForNullReference(); 1045ThrowHelper.ThrowArgument_LengthIsNonZeroForNullReference(); 1050ThrowHelper.ThrowArgument_InvalidTensorShape(); 1100ThrowHelper.ThrowArgumentOutOfRangeException(); 1155ThrowHelper.ThrowArgumentOutOfRangeException(); 1318ThrowHelper.ThrowIndexOutOfRangeException(); 1338ThrowHelper.ThrowIndexOutOfRangeException();
System\Numerics\Tensors\netcore\TensorSpan.cs (8)
36ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 48ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 60ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 72ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 108ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 120ThrowHelper.ThrowIfArrayTypeMismatch<T>(array); 263ThrowHelper.ThrowArgument_DestinationTooShort(); 281ThrowHelper.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();