2 implementations of PositiveInfinity
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
822
static double IFloatingPointIeee754<double>.
PositiveInfinity
=> PositiveInfinity;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
817
static float IFloatingPointIeee754<float>.
PositiveInfinity
=> PositiveInfinity;
46 references to PositiveInfinity
System.Numerics.Tensors (14)
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (2)
25
/// If a value is equal to <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity"/> or <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (2)
21
/// If a value is equal to <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity"/> or <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (1)
23
/// If any element in either input tensor is equal to <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity"/>, <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>, or <see cref="IFloatingPointIeee754{TSelf}.NaN"/>,
System\Numerics\Tensors\netcore\TensorPrimitives.Exp.cs (1)
21
/// If a value equals <see cref="IFloatingPointIeee754{TSelf}.NaN"/> or <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>, the result stored into the corresponding destination location is set to NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Log.cs (1)
23
/// If a value is positive infinity, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.Log10.cs (1)
22
/// If a value is positive infinity, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.Log10P1.cs (1)
22
/// If a value is positive infinity, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.Log2.cs (1)
23
/// If a value is positive infinity, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.Log2P1.cs (1)
22
/// If a value is positive infinity, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.LogP1.cs (1)
22
/// If a value is positive infinity, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (1)
21
/// If a value is equal to <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity"/>, <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>, or <see cref="IFloatingPointIeee754{TSelf}.NaN"/>,
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (1)
21
/// If a value is equal to <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
"/>, the corresponding destination location is set to 1.
System.Private.CoreLib (15)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
821
/// <inheritdoc cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (2)
3728
return isNegative ? TFloat.NegativeInfinity : TFloat.
PositiveInfinity
;
3755
result = TFloat.
PositiveInfinity
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (5)
1499
result = isNegative ? TFloat.NegativeInfinity : TFloat.
PositiveInfinity
;
1543
result = isNegative ? TFloat.NegativeInfinity : TFloat.
PositiveInfinity
;
1629
result = TFloat.
PositiveInfinity
;
1656
result = TFloat.
PositiveInfinity
;
1753
result = TFloat.
PositiveInfinity
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (1)
89
get => Create(T.
PositiveInfinity
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (2)
118
/// <summary>Gets a new vector with all elements initialized to <see cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
" />.</summary>
123
get => Create(T.
PositiveInfinity
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (1)
118
get => Create(T.
PositiveInfinity
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (1)
118
get => Create(T.
PositiveInfinity
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (1)
91
get => Create(T.
PositiveInfinity
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
816
/// <inheritdoc cref="IFloatingPointIeee754{TSelf}.
PositiveInfinity
" />
System.Runtime.Numerics (16)
System\Numerics\Complex.Generic.cs (16)
30
public static Complex<T> Infinity => new(T.
PositiveInfinity
, T.
PositiveInfinity
);
259
T inf = T.
PositiveInfinity
;
325
T inf = T.CopySign(T.
PositiveInfinity
, c);
334
T inf = T.
PositiveInfinity
;
555
re = T.
PositiveInfinity
;
566
re = T.IsInfinity(absB) ? T.
PositiveInfinity
: T.NaN;
572
re = T.IsInfinity(absB) ? T.
PositiveInfinity
: T.NaN;
615
return new Complex<T>(T.
PositiveInfinity
, imag);
621
return new Complex<T>(T.
PositiveInfinity
, T.NaN);
690
im = T.IsNaN(absY) ? T.
PositiveInfinity
: T.NegativeInfinity;
985
return new Complex<T>(T.
PositiveInfinity
, T.NaN);
1012
return new Complex<T>(T.
PositiveInfinity
, imaginary);
1022
return new Complex<T>(T.NaN, T.
PositiveInfinity
);
1025
return new Complex<T>(T.Zero, T.CopySign(T.
PositiveInfinity
, imaginary));
1029
return new Complex<T>(T.
PositiveInfinity
, T.IsNaN(imaginary) ? T.NaN : T.CopySign(T.Zero, imaginary));
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Value\Ieee754FloatingPointConverter.cs (1)
244
value = T.
PositiveInfinity
;