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