2 implementations of NegativeInfinity
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
816static double IFloatingPointIeee754<double>.NegativeInfinity => NegativeInfinity;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
811static float IFloatingPointIeee754<float>.NegativeInfinity => NegativeInfinity;
29 references to NegativeInfinity
System.Numerics.Tensors (12)
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (1)
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 (1)
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)
22/// If a value equals <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity"/>, the result stored into the corresponding destination location is set to 0.
System\Numerics\Tensors\netcore\TensorPrimitives.Log.cs (1)
21/// If a value equals 0, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.Log10.cs (1)
20/// If a value equals 0, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.Log10P1.cs (1)
20/// If a value equals 0, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.Log2.cs (1)
21/// If a value equals 0, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.Log2P1.cs (1)
20/// If a value equals 0, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity"/>.
System\Numerics\Tensors\netcore\TensorPrimitives.LogP1.cs (1)
20/// If a value equals 0, the result stored into the corresponding destination location is set to <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity"/>.
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)
20/// If a value is equal to <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity"/>, the corresponding destination location is set to -1.
System.Private.CoreLib (12)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
815/// <inheritdoc cref="IFloatingPointIeee754{TSelf}.NegativeInfinity" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (1)
3728return isNegative ? TFloat.NegativeInfinity : TFloat.PositiveInfinity;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (3)
1499result = isNegative ? TFloat.NegativeInfinity : TFloat.PositiveInfinity; 1543result = isNegative ? TFloat.NegativeInfinity : TFloat.PositiveInfinity; 1635result = TFloat.NegativeInfinity;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (1)
75get => Create(T.NegativeInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (2)
102/// <summary>Gets a new vector with all elements initialized to <see cref="IFloatingPointIeee754{TSelf}.NegativeInfinity" />.</summary> 107get => Create(T.NegativeInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (1)
104get => Create(T.NegativeInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (1)
104get => Create(T.NegativeInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (1)
77get => Create(T.NegativeInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
810/// <inheritdoc cref="IFloatingPointIeee754{TSelf}.NegativeInfinity" />
System.Private.Windows.Core.TestUtilities (1)
XUnit\TestData.cs (1)
48T.NegativeInfinity,
System.Runtime.Numerics (3)
System\Numerics\Complex.Generic.cs (3)
690im = T.IsNaN(absY) ? T.PositiveInfinity : T.NegativeInfinity; 696im = T.IsInfinity(absY) ? T.NegativeInfinity : T.NaN; 705im = T.NegativeInfinity;
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Value\Ieee754FloatingPointConverter.cs (1)
250value = T.NegativeInfinity;