2 implementations of NaN
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
795static double IFloatingPointIeee754<double>.NaN => NaN;
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
792static float IFloatingPointIeee754<float>.NaN => NaN;
76 references to NaN
System.Numerics.Tensors (65)
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (1)
26/// If a value is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result stored into the corresponding destination location is the original NaN value with the sign bit removed.
System\Numerics\Tensors\netcore\TensorPrimitives.Add.cs (2)
23/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 41/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.AddMultiply.cs (3)
25/// If any of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 46/// If any of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 67/// If any of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Average.cs (1)
17/// If any of the input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (1)
22/// If a value is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result stored into the corresponding destination location is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (1)
22/// 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.Distance.cs (1)
27/// If any element in either input tensor is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, NaN is returned.
System\Numerics\Tensors\netcore\TensorPrimitives.Divide.cs (3)
23/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 42/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 61/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.DivRem.cs (3)
26/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise values are also NaN. 48/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise values are also NaN. 70/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise values are also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Dot.cs (1)
24/// If any of the input elements is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting value is also 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.FusedMultiplyAdd.cs (3)
28/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 56/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 83/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Lerp.cs (3)
26/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 47/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 68/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Log.cs (1)
22/// If a value is negative or equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result stored into the corresponding destination location is set to NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Log10.cs (1)
21/// If a value is negative or equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result stored into the corresponding destination location is set to NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Log10P1.cs (1)
21/// If a value is negative or equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result stored into the corresponding destination location is set to NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Log2.cs (1)
22/// If a value is negative or equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result stored into the corresponding destination location is set to NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Log2P1.cs (1)
21/// If a value is negative or equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result stored into the corresponding destination location is set to NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.LogP1.cs (1)
21/// If a value is negative or equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result stored into the corresponding destination location is set to NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (3)
20/// The determination of the maximum element matches the IEEE 754:2019 `maximum` function. If any value equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/> 45/// The determination of the maximum element matches the IEEE 754:2019 `maximum` function. If either value is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, 68/// The determination of the maximum element matches the IEEE 754:2019 `maximum` function. If either value is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>,
System\Numerics\Tensors\netcore\TensorPrimitives.MaxMagnitude.cs (1)
17/// The determination of the maximum magnitude matches the IEEE 754:2019 `maximumMagnitude` function. If any value equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>
System\Numerics\Tensors\netcore\TensorPrimitives.MaxNumber.cs (2)
44/// The determination of the maximum element matches the IEEE 754:2019 `maximumNumber` function. If either value is <see cref="IFloatingPointIeee754{TSelf}.NaN"/> 67/// The determination of the maximum element matches the IEEE 754:2019 `maximumNumber` function. If either value is <see cref="IFloatingPointIeee754{TSelf}.NaN"/>
System\Numerics\Tensors\netcore\TensorPrimitives.Min.cs (3)
18/// The determination of the minimum element matches the IEEE 754:2019 `minimum` function. If any value is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/> 43/// The determination of the maximum element matches the IEEE 754:2019 `maximum` function. If either value is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, 66/// The determination of the maximum element matches the IEEE 754:2019 `maximum` function. If either value is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>,
System\Numerics\Tensors\netcore\TensorPrimitives.MinMagnitude.cs (3)
17/// The determination of the minimum magnitude matches the IEEE 754:2019 `minimumMagnitude` function. If any value equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/> 41/// The determination of the maximum magnitude matches the IEEE 754:2019 `minimumMagnitude` function. If either value is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, 63/// The determination of the maximum magnitude matches the IEEE 754:2019 `minimumMagnitude` function. If either value is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>,
System\Numerics\Tensors\netcore\TensorPrimitives.MinNumber.cs (2)
44/// The determination of the minimum element matches the IEEE 754:2019 `minimumNumber` function. If either value is <see cref="IFloatingPointIeee754{TSelf}.NaN"/> 67/// The determination of the minimum element matches the IEEE 754:2019 `minimumNumber` function. If either value is <see cref="IFloatingPointIeee754{TSelf}.NaN"/>
System\Numerics\Tensors\netcore\TensorPrimitives.Multiply.cs (2)
23/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 42/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAdd.cs (3)
25/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 47/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 68/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAddEstimate.cs (3)
29/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 55/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 80/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Negate.cs (1)
20/// If any of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Norm.cs (1)
18/// If any of the input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Product.cs (1)
14/// If any of the input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Remainder.cs (3)
23/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise values are also NaN. 42/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise values are also NaN. 61/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise values are also NaN.
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.StdDev.cs (1)
17/// If any of the input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Subtract.cs (3)
23/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 41/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN. 59/// If either of the element-wise input values is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the resulting element-wise value is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Sum.cs (1)
15/// If any of the values in the input is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the result is also NaN.
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (1)
22/// If a value is equal to <see cref="IFloatingPointIeee754{TSelf}.NaN"/>, the corresponding destination location is set to NaN.
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
794/// <inheritdoc cref="IFloatingPointIeee754{TSelf}.NaN" />
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (4)
980result = TFloat.NaN; 997result = TFloat.NaN; 1011result = TFloat.NaN; 1017result = TFloat.NaN;
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
791/// <inheritdoc cref="IFloatingPointIeee754{TSelf}.NaN" />
System.Private.Windows.Core.TestUtilities (1)
XUnit\TestData.cs (1)
45T.NaN,
System.Runtime.InteropServices (4)
System\Runtime\InteropServices\Marshalling\ExceptionAsNaNMarshaller.cs (4)
9/// Converts all exceptions to <see cref="IFloatingPointIeee754{T}.NaN"/>. 17/// Convert the exception to <see cref="IFloatingPointIeee754{T}.NaN"/>. 20/// <returns><see cref="IFloatingPointIeee754{T}.NaN"/>.</returns> 26return T.NaN;