139 references to NegativeInfinity
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\CSharpSyntaxUtilities.cs (1)
31case double.NegativeInfinity:
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (2)
1176if (s == "-INF") return Double.NegativeInfinity; 1191result = Double.NegativeInfinity;
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
94{ double.NegativeInfinity, nameof(double.NegativeInfinity) },
Microsoft.AspNetCore.App.Analyzers (1)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (1)
272double d when d is double.NegativeInfinity => "double.NegativeInfinity",
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (1)
272double d when d is double.NegativeInfinity => "double.NegativeInfinity",
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
94{ double.NegativeInfinity, nameof(double.NegativeInfinity) },
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
94{ double.NegativeInfinity, nameof(double.NegativeInfinity) },
Microsoft.CodeAnalysis.CSharp (4)
Binder\PatternExplainer.cs (1)
914double.NegativeInfinity => "double.NegativeInfinity",
Utilities\ValueSetFactory.DoubleTC.cs (3)
18double INumericTC<double>.MinValue => double.NegativeInfinity; 42if (value == double.NegativeInfinity) 92value == double.NegativeInfinity ? "-Inf" :
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
94{ double.NegativeInfinity, nameof(double.NegativeInfinity) },
Microsoft.Extensions.AI.Abstractions.Tests (1)
parent\parent\Shared\JsonSchemaExporter\TestTypes.cs (1)
287new() { X = 1, Y = double.NegativeInfinity, Z = 3 },
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\CSharpSyntaxUtilities.cs (1)
31case double.NegativeInfinity:
Microsoft.Extensions.Validation.ValidationsGenerator (1)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (1)
272double d when d is double.NegativeInfinity => "double.NegativeInfinity",
Microsoft.ML.AutoML (1)
Utils\BestResultUtil.cs (1)
140var maxScore = double.NegativeInfinity;
Microsoft.ML.AutoML.Tests (1)
TunerTests.cs (1)
176var invalidLosses = Enumerable.Repeat(new[] { double.NaN, double.NegativeInfinity, double.PositiveInfinity }, 100)
Microsoft.ML.Core (2)
Utilities\SummaryStatistics.cs (1)
16Max = double.NegativeInfinity;
Utilities\SupervisedBinFinder.cs (1)
162Double curValue = Double.NegativeInfinity;
Microsoft.ML.CpuMath (1)
ProbabilityFunctions.cs (1)
72return Double.NegativeInfinity;
Microsoft.ML.Data (6)
DataLoadSave\DataOperationsCatalog.cs (1)
224public IDataView FilterRowsByColumn(IDataView input, string columnName, double lowerBound = double.NegativeInfinity, double upperBound = double.PositiveInfinity)
Transforms\NormalizeColumnDbl.cs (1)
334_max[i] = TFloat.NegativeInfinity;
Transforms\RangeFilter.cs (1)
124_min = options.Min ?? Double.NegativeInfinity;
Utils\LossFunctions.cs (3)
172return Double.NegativeInfinity; 272return Double.NegativeInfinity; 396return Double.NegativeInfinity;
Microsoft.ML.FastTree (18)
BinFile\BinFinder.cs (1)
142var prev = double.NegativeInfinity;
Dataset\FeatureFlock.cs (4)
245double bestShiftedGain = double.NegativeInfinity; 370double bestShiftedGain = double.NegativeInfinity; 590double bestShiftedGain = double.NegativeInfinity; 812double bestShiftedGain = double.NegativeInfinity;
Training\DcgCalculator.cs (5)
196double maxScore1 = double.NegativeInfinity; 197double maxScore2 = double.NegativeInfinity; 198double maxScore3 = double.NegativeInfinity; 245if (maxScore2 > double.NegativeInfinity) 247if (maxScore3 > double.NegativeInfinity)
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (7)
398BestSplitInfoPerLeaf[lteChild].Gain = double.NegativeInfinity; 399BestSplitInfoPerLeaf[gtChild].Gain = double.NegativeInfinity; 717double bestShiftedGain = double.NegativeInfinity; 1078FeatureSplitInfo[f].Gain = double.NegativeInfinity; 1117Gain = double.NegativeInfinity; 1191myGain = double.NegativeInfinity; 1194otherGain = double.NegativeInfinity;
Utils\LinqExtensions.cs (1)
254double max = double.NegativeInfinity;
Microsoft.ML.IntegrationTests (3)
Common.cs (3)
198Assert.InRange(metrics.Entropy, double.NegativeInfinity, 1); 199Assert.InRange(metrics.LogLoss, double.NegativeInfinity, 1); 200Assert.InRange(metrics.LogLossReduction, double.NegativeInfinity, 100);
Microsoft.ML.LightGbm (1)
WrappedLightGbmBooster.cs (1)
106values.Add(double.NegativeInfinity);
Microsoft.ML.Predictor.Tests (1)
CompareBaselines.cs (1)
314d = line[ich] == '-' ? double.NegativeInfinity : double.PositiveInfinity;
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
31Double.MaxValue, Double.Epsilon, Double.NegativeInfinity, Double.PositiveInfinity };
Microsoft.ML.Tests (15)
Transformers\NAIndicatorTests.cs (9)
41new TestClass() { A = float.NegativeInfinity, B = double.NegativeInfinity, C = new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.NegativeInfinity, double.NegativeInfinity}}, 69new TestClass() { A = float.NegativeInfinity, B = double.NegativeInfinity, C = new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.NegativeInfinity, double.NegativeInfinity}}, 132new TestClass() { A = float.NegativeInfinity, B = double.NegativeInfinity, C = new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.NegativeInfinity, double.NegativeInfinity}},
Transformers\NAReplaceTests.cs (6)
106new TestClass() { A = float.NegativeInfinity, B = double.NegativeInfinity,C= new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.NegativeInfinity, double.NegativeInfinity}}, 164new TestClass() { A = float.NegativeInfinity, B = double.NegativeInfinity,C= new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.NegativeInfinity, double.NegativeInfinity}},
Microsoft.ML.TimeSeries (2)
AdaptiveSingularSpectrumSequenceModeler.cs (2)
864Double maxTrendMagnitude = Double.NegativeInfinity; 865Double maxNonTrendMagnitude = Double.NegativeInfinity;
Microsoft.ML.Transforms (2)
MissingValueReplacingUtils.cs (2)
824Stat = ReturnMax ? double.NegativeInfinity : double.PositiveInfinity; 845Stat = ReturnMax ? double.NegativeInfinity : double.PositiveInfinity;
PresentationCore (20)
System\Windows\Media\BoundsDrawingContextWalker.cs (2)
590bounds.X = Double.NegativeInfinity; 591bounds.Y = Double.NegativeInfinity;
System\Windows\Media\GlyphRun.cs (4)
1274double accRight = double.NegativeInfinity; 1275double accBottom = double.NegativeInfinity; 1441double accRight = double.NegativeInfinity; 1442double accBottom = double.NegativeInfinity;
System\Windows\Media\Visual.cs (8)
404bboxSubgraph.X = Double.NegativeInfinity; 405bboxSubgraph.Y = Double.NegativeInfinity; 599bboxSubgraph.X = Double.NegativeInfinity; 600bboxSubgraph.Y = Double.NegativeInfinity; 1052_bboxSubgraph.X = Double.NegativeInfinity; 1053_bboxSubgraph.Y = Double.NegativeInfinity; 1127bboxSubgraph.X = Double.NegativeInfinity; 1128bboxSubgraph.Y = Double.NegativeInfinity;
System\Windows\Media3D\Rect3D.cs (3)
602_sizeX = Double.NegativeInfinity, 603_sizeY = Double.NegativeInfinity, 604_sizeZ = Double.NegativeInfinity
System\Windows\Media3D\Size3D.cs (3)
176_x = Double.NegativeInfinity, 177_y = Double.NegativeInfinity, 178_z = Double.NegativeInfinity
PresentationFramework (13)
System\Windows\Controls\ItemsControl.cs (2)
2984viewPortBounds = new Rect(Double.NegativeInfinity, viewPortBounds.Top, 2989viewPortBounds = new Rect(viewPortBounds.Left, Double.NegativeInfinity,
System\Windows\Controls\ScrollViewer.cs (5)
109public void ScrollToLeftEnd() { EnqueueCommand(Commands.SetHorizontalOffset, Double.NegativeInfinity, null); } 120EnqueueCommand(Commands.SetHorizontalOffset, Double.NegativeInfinity, null); 121EnqueueCommand(Commands.SetVerticalOffset, Double.NegativeInfinity, null); 128EnqueueCommand(Commands.SetHorizontalOffset, Double.NegativeInfinity, null); 135public void ScrollToTop() { EnqueueCommand(Commands.SetVerticalOffset, Double.NegativeInfinity, null); }
System\Windows\Input\KeyboardNavigation.cs (6)
2997double resultDirectionScore = double.NegativeInfinity; 2998double resultRangeScore = double.NegativeInfinity; 3001double partialResultDirectionScore = double.NegativeInfinity; 3002double partialResultRangeScore = double.NegativeInfinity; 3028double directionScore = double.NegativeInfinity; 3049double rangeScore = double.NegativeInfinity;
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
94{ double.NegativeInfinity, nameof(double.NegativeInfinity) },
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
287new() { X = 1, Y = double.NegativeInfinity, Z = 3 },
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Float.cs (1)
73return TryParseAsSpecialFloatingPoint(source, double.PositiveInfinity, double.NegativeInfinity, double.NaN, out value, out bytesConsumed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventCounter.cs (3)
34_max = double.NegativeInfinity; 134_max = double.NegativeInfinity; 142private const double UnusedBufferSlotValue = double.NegativeInfinity;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (4)
222return d == NegativeInfinity; 816static double IFloatingPointIeee754<double>.NegativeInfinity => NegativeInfinity; 1770result = int.IsOddInteger(n) ? NegativeInfinity : NaN; 2469result = +sign * (long.IsOddInteger(integral) ? NegativeInfinity : PositiveInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1037return sign ? double.NegativeInfinity : double.PositiveInfinity;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
84get => new NFloat(NativeType.NegativeInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (2)
1063TVectorDouble.Create(double.NegativeInfinity), 1383TVectorDouble.Create(double.NegativeInfinity),
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
674/// <paramref name="value"/> is <see cref="double.NegativeInfinity"/>
System.Private.Xml (8)
System\Xml\XmlConvert.cs (2)
1009return double.NegativeInfinity; 1029result = double.NegativeInfinity;
System\Xml\Xsl\Runtime\XmlSortKey.cs (5)
312_dblVal = (collation.EmptyGreatest != collation.DescendingOrder) ? double.PositiveInfinity : double.NegativeInfinity; 342Debug.Assert(_dblVal == double.NegativeInfinity || _dblVal == double.PositiveInfinity); 343return (_dblVal == double.NegativeInfinity) ? -1 : 1; 348Debug.Assert(that._dblVal == double.NegativeInfinity || that._dblVal == double.PositiveInfinity); 349return (that._dblVal == double.NegativeInfinity) ? 1 : -1;
System\Xml\Xsl\XPathConvert.cs (1)
86return NextAfter(x, double.NegativeInfinity);
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (2)
2086return sign == 1 ? double.PositiveInfinity : double.NegativeInfinity; 2165return sign == 1 ? double.PositiveInfinity : double.NegativeInfinity;
System.Text.Json (3)
System\Text\Json\Document\JsonElement.cs (2)
847/// <see cref="double.NegativeInfinity"/>) is emitted. 878/// <see cref="double.NegativeInfinity"/>) for values larger than
System\Text\Json\Reader\JsonReaderHelper.cs (1)
384value = double.NegativeInfinity;
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\CSharpSyntaxUtilities.cs (1)
31case double.NegativeInfinity:
System.Windows.Input.Manipulations (2)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (2)
711(state.InitialVelocity > 0 ? double.PositiveInfinity : double.NegativeInfinity); 1120public double MinBound = double.NegativeInfinity;