2 implementations of PositiveInfinity
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
822static double IFloatingPointIeee754<double>.PositiveInfinity => PositiveInfinity;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
817static 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)
3728return isNegative ? TFloat.NegativeInfinity : TFloat.PositiveInfinity; 3755result = TFloat.PositiveInfinity;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (5)
1499result = isNegative ? TFloat.NegativeInfinity : TFloat.PositiveInfinity; 1543result = isNegative ? TFloat.NegativeInfinity : TFloat.PositiveInfinity; 1629result = TFloat.PositiveInfinity; 1656result = TFloat.PositiveInfinity; 1753result = TFloat.PositiveInfinity;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (1)
89get => 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> 123get => Create(T.PositiveInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (1)
118get => Create(T.PositiveInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (1)
118get => Create(T.PositiveInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (1)
91get => 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)
30public static Complex<T> Infinity => new(T.PositiveInfinity, T.PositiveInfinity); 259T inf = T.PositiveInfinity; 325T inf = T.CopySign(T.PositiveInfinity, c); 334T inf = T.PositiveInfinity; 555re = T.PositiveInfinity; 566re = T.IsInfinity(absB) ? T.PositiveInfinity : T.NaN; 572re = T.IsInfinity(absB) ? T.PositiveInfinity : T.NaN; 615return new Complex<T>(T.PositiveInfinity, imag); 621return new Complex<T>(T.PositiveInfinity, T.NaN); 690im = T.IsNaN(absY) ? T.PositiveInfinity : T.NegativeInfinity; 985return new Complex<T>(T.PositiveInfinity, T.NaN); 1012return new Complex<T>(T.PositiveInfinity, imaginary); 1022return new Complex<T>(T.NaN, T.PositiveInfinity); 1025return new Complex<T>(T.Zero, T.CopySign(T.PositiveInfinity, imaginary)); 1029return 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)
244value = T.PositiveInfinity;