50 references to SR
System.Numerics.Tensors (50)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
352throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 376throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
51throw new ArgumentException(SR.Argument_OverlappingTensorLayoutsNotSupported, nameof(destination));
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (4)
75throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, mode, typeof(MidpointRounding)), nameof(mode)); 123throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, mode, typeof(MidpointRounding)), nameof(mode));
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
242throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 266throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
System\Numerics\Tensors\TensorPrimitives.Helpers.cs (1)
40private static void ThrowNegateTwosCompOverflow() => throw new OverflowException(SR.Overflow_NegateTwosCompNum);
System\ThrowHelper.cs (40)
16throw new ArgumentException(SR.Argument_DestinationTooShort, destinationName); 20throw new ArgumentException(SR.Argument_SpansMustHaveSameLength); 24throw new ArgumentException(SR.Argument_SpansMustBeNonEmpty); 28throw new ArgumentException(SR.Argument_InputAndDestinationSpanMustNotOverlap, "destination"); 32throw new ArgumentException(SR.Argument_OverlappingTensorLayoutsNotSupported, "destination"); 108throw new ArgumentException(SR.Argument_DestinationSpansMustNotOverlap); 125throw new ArgumentException(SR.Format(SR.Argument_TypeContainsReferences, targetType)); 137throw new InvalidOperationException(SR.InvalidOperation_EnumerationNotPositioned); 160throw new ArgumentException(SR.ThrowArgument_IndicesLengthMustEqualRank); 170throw new ArgumentOutOfRangeException("value", SR.ThrowArgument_ValueNonNegative); 176throw new ArgumentException(SR.ThrowArgument_FilterTensorMustEqualTensorLength); 182throw new ArgumentException(SR.ThrowArgument_SetSliceNoRange, paramNames); 188throw new ArgumentException(SR.ThrowArgument_SetSliceInvalidShapes, paramNames); 194throw new ArgumentException(SR.ThrowArgument_LengthsNotCompatible); 200throw new ArgumentException(SR.ThrowArgument_SplitNotSplitEvenly); 206throw new ArgumentException(SR.ThrowArgument_DimensionsNotSame, paramNames); 212throw new ArgumentException(SR.ThrowArgument_DestinationHasOverlappingElements, paramName); 218throw new ArgumentException(SR.ThrowArgument_1DTensorRequired, paramNames); 224throw new ArgumentException(SR.Argument_2DTensorRequired, paramNames); 230throw new ArgumentException(SR.ThrowArgument_IncorrectNumberOfFilterItems, paramNames); 236throw new ArgumentException(SR.ThrowArgument_StackTooFewTensors); 242throw new ArgumentException(SR.ThrowArgument_OnlyOneWildcard); 248throw new ArgumentException(SR.ThrowArgument_InvalidReshapeDimensions); 254throw new ArgumentException(SR.ThrowArgument_AxisLargerThanRank); 260throw new ArgumentException(SR.ThrowArgument_InvalidSqueezeAxis); 266throw new ArgumentException(SR.ThrowArgument_ConcatenateTooFewTensors); 272throw new ArgumentException(SR.ThrowArgument_InvalidDimension); 278throw new ArgumentException(SR.ThrowArgument_InvalidConcatenateShape); 284throw new ArgumentException(SR.ThrowArgument_TransposeTooFewDimensions); 290throw new ArgumentException(SR.ThrowArgument_PermuteAxisOrder); 296throw new ArgumentException(SR.ThrowArgument_InPlaceInvalidShape); 302throw new ArgumentException(SR.ThrowArgument_InvalidStridesAndLengths); 308throw new ArgumentOutOfRangeException(SR.ThrowArgument_LengthIsNonZeroForNullReference); 314throw new ArgumentOutOfRangeException(SR.ThrowArgument_StrideLessThan0); 320throw new ArgumentException(SR.Format(SR.Argument_IncompatibleDimensions, leftDim, rightDim)); 326throw new ArgumentException(SR.ThrowArgument_StackShapesNotSame); 332throw new ArgumentException(SR.Argument_CannotReshapeNonContiguousOrDense); 338throw new ArithmeticException(SR.Arithmetic_NaN);