27 references to IsPositiveInfinity
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
2291
else if (float.
IsPositiveInfinity
(s))
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
793
if (Single.
IsPositiveInfinity
(value)) return "INF";
Microsoft.Cci.Extensions (1)
Writers\CSharp\CSDeclarationWriter.Attributes.cs (1)
287
else if (float.
IsPositiveInfinity
(val))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
211
else if (float.
IsPositiveInfinity
(value))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
211
else if (float.
IsPositiveInfinity
(value))
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
110
if (Single.
IsPositiveInfinity
(f.GetValueOrDefault()))
Microsoft.ML.Core (1)
Utilities\BinFinder.cs (1)
224
if (Single.
IsPositiveInfinity
(b))
Microsoft.ML.Data (2)
Transforms\NormalizeColumnSng.cs (2)
1564
Contracts.Assert(min <= max || (TFloat.
IsPositiveInfinity
(min) && TFloat.IsNegativeInfinity(max)));
1589
Contracts.Assert(min <= max || (TFloat.
IsPositiveInfinity
(min) && TFloat.IsNegativeInfinity(max)));
Microsoft.ML.StandardTrainers (2)
Optimizer\Optimizer.cs (1)
416
if (float.
IsPositiveInfinity
(Value))
Standard\PoissonRegression\PoissonRegression.cs (1)
184
if (float.
IsPositiveInfinity
(lambda))
Microsoft.ML.Transforms (1)
Expression\Tokens.cs (1)
151
if (float.
IsPositiveInfinity
(Value))
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
211
else if (float.
IsPositiveInfinity
(value))
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
1527
else if (float.
IsPositiveInfinity
(s))
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
972
else if (float.
IsPositiveInfinity
(s))
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\MathF.cs (1)
236
if ((x != 1) && ((y == 0) || float.
IsPositiveInfinity
(y)))
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (6)
477
float range = float.
IsPositiveInfinity
(farPlaneDistance) ? -1.0f : farPlaneDistance / (nearPlaneDistance - farPlaneDistance);
500
float range = float.
IsPositiveInfinity
(farPlaneDistance) ? 1.0f : farPlaneDistance / (farPlaneDistance - nearPlaneDistance);
527
float range = float.
IsPositiveInfinity
(farPlaneDistance) ? -1.0f : farPlaneDistance / (nearPlaneDistance - farPlaneDistance);
554
float range = float.
IsPositiveInfinity
(farPlaneDistance) ? 1.0f : farPlaneDistance / (farPlaneDistance - nearPlaneDistance);
579
float range = float.
IsPositiveInfinity
(farPlaneDistance) ? -1.0f : farPlaneDistance / (nearPlaneDistance - farPlaneDistance);
609
float range = float.
IsPositiveInfinity
(farPlaneDistance) ? 1.0f : farPlaneDistance / (farPlaneDistance - nearPlaneDistance);
src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
1629
Debug.Assert(
IsPositiveInfinity
(x));
1674
Debug.Assert(
IsPositiveInfinity
(x));
System.Private.Xml (2)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
4321
else if (float.
IsPositiveInfinity
((float)value))
System\Xml\XmlConvert.cs (1)
666
if (float.
IsPositiveInfinity
(value)) return "INF";
System.Text.Json (1)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (1)
159
else if (float.
IsPositiveInfinity
(value))