139 references to NegativeInfinity
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\CSharpSyntaxUtilities.cs (1)
31
case double.
NegativeInfinity
:
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (2)
1176
if (s == "-INF") return Double.
NegativeInfinity
;
1191
result = 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)
272
double d when d is double.
NegativeInfinity
=> "double.NegativeInfinity",
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (1)
272
double 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)
914
double.
NegativeInfinity
=> "double.NegativeInfinity",
Utilities\ValueSetFactory.DoubleTC.cs (3)
18
double INumericTC<double>.MinValue => double.
NegativeInfinity
;
42
if (value == double.
NegativeInfinity
)
92
value == 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)
287
new() { X = 1, Y = double.
NegativeInfinity
, Z = 3 },
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\CSharpSyntaxUtilities.cs (1)
31
case double.
NegativeInfinity
:
Microsoft.Extensions.Validation.ValidationsGenerator (1)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (1)
272
double d when d is double.
NegativeInfinity
=> "double.NegativeInfinity",
Microsoft.ML.AutoML (1)
Utils\BestResultUtil.cs (1)
140
var maxScore = double.
NegativeInfinity
;
Microsoft.ML.AutoML.Tests (1)
TunerTests.cs (1)
176
var invalidLosses = Enumerable.Repeat(new[] { double.NaN, double.
NegativeInfinity
, double.PositiveInfinity }, 100)
Microsoft.ML.Core (2)
Utilities\SummaryStatistics.cs (1)
16
Max = double.
NegativeInfinity
;
Utilities\SupervisedBinFinder.cs (1)
162
Double curValue = Double.
NegativeInfinity
;
Microsoft.ML.CpuMath (1)
ProbabilityFunctions.cs (1)
72
return Double.
NegativeInfinity
;
Microsoft.ML.Data (6)
DataLoadSave\DataOperationsCatalog.cs (1)
224
public 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)
172
return Double.
NegativeInfinity
;
272
return Double.
NegativeInfinity
;
396
return Double.
NegativeInfinity
;
Microsoft.ML.FastTree (18)
BinFile\BinFinder.cs (1)
142
var prev = double.
NegativeInfinity
;
Dataset\FeatureFlock.cs (4)
245
double bestShiftedGain = double.
NegativeInfinity
;
370
double bestShiftedGain = double.
NegativeInfinity
;
590
double bestShiftedGain = double.
NegativeInfinity
;
812
double bestShiftedGain = double.
NegativeInfinity
;
Training\DcgCalculator.cs (5)
196
double maxScore1 = double.
NegativeInfinity
;
197
double maxScore2 = double.
NegativeInfinity
;
198
double maxScore3 = double.
NegativeInfinity
;
245
if (maxScore2 > double.
NegativeInfinity
)
247
if (maxScore3 > double.
NegativeInfinity
)
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (7)
398
BestSplitInfoPerLeaf[lteChild].Gain = double.
NegativeInfinity
;
399
BestSplitInfoPerLeaf[gtChild].Gain = double.
NegativeInfinity
;
717
double bestShiftedGain = double.
NegativeInfinity
;
1078
FeatureSplitInfo[f].Gain = double.
NegativeInfinity
;
1117
Gain = double.
NegativeInfinity
;
1191
myGain = double.
NegativeInfinity
;
1194
otherGain = double.
NegativeInfinity
;
Utils\LinqExtensions.cs (1)
254
double max = double.
NegativeInfinity
;
Microsoft.ML.IntegrationTests (3)
Common.cs (3)
198
Assert.InRange(metrics.Entropy, double.
NegativeInfinity
, 1);
199
Assert.InRange(metrics.LogLoss, double.
NegativeInfinity
, 1);
200
Assert.InRange(metrics.LogLossReduction, double.
NegativeInfinity
, 100);
Microsoft.ML.LightGbm (1)
WrappedLightGbmBooster.cs (1)
106
values.Add(double.
NegativeInfinity
);
Microsoft.ML.Predictor.Tests (1)
CompareBaselines.cs (1)
314
d = line[ich] == '-' ? double.
NegativeInfinity
: double.PositiveInfinity;
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
31
Double.MaxValue, Double.Epsilon, Double.
NegativeInfinity
, Double.PositiveInfinity };
Microsoft.ML.Tests (15)
Transformers\NAIndicatorTests.cs (9)
41
new TestClass() { A = float.NegativeInfinity, B = double.
NegativeInfinity
, C = new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.
NegativeInfinity
, double.
NegativeInfinity
}},
69
new TestClass() { A = float.NegativeInfinity, B = double.
NegativeInfinity
, C = new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.
NegativeInfinity
, double.
NegativeInfinity
}},
132
new 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)
106
new TestClass() { A = float.NegativeInfinity, B = double.
NegativeInfinity
,C= new float[2]{ float.NegativeInfinity, float.NegativeInfinity } , D = new double[2]{ double.
NegativeInfinity
, double.
NegativeInfinity
}},
164
new 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)
864
Double maxTrendMagnitude = Double.
NegativeInfinity
;
865
Double maxNonTrendMagnitude = Double.
NegativeInfinity
;
Microsoft.ML.Transforms (2)
MissingValueReplacingUtils.cs (2)
824
Stat = ReturnMax ? double.
NegativeInfinity
: double.PositiveInfinity;
845
Stat = ReturnMax ? double.
NegativeInfinity
: double.PositiveInfinity;
PresentationCore (20)
System\Windows\Media\BoundsDrawingContextWalker.cs (2)
590
bounds.X = Double.
NegativeInfinity
;
591
bounds.Y = Double.
NegativeInfinity
;
System\Windows\Media\GlyphRun.cs (4)
1274
double accRight = double.
NegativeInfinity
;
1275
double accBottom = double.
NegativeInfinity
;
1441
double accRight = double.
NegativeInfinity
;
1442
double accBottom = double.
NegativeInfinity
;
System\Windows\Media\Visual.cs (8)
404
bboxSubgraph.X = Double.
NegativeInfinity
;
405
bboxSubgraph.Y = Double.
NegativeInfinity
;
599
bboxSubgraph.X = Double.
NegativeInfinity
;
600
bboxSubgraph.Y = Double.
NegativeInfinity
;
1052
_bboxSubgraph.X = Double.
NegativeInfinity
;
1053
_bboxSubgraph.Y = Double.
NegativeInfinity
;
1127
bboxSubgraph.X = Double.
NegativeInfinity
;
1128
bboxSubgraph.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)
2984
viewPortBounds = new Rect(Double.
NegativeInfinity
, viewPortBounds.Top,
2989
viewPortBounds = new Rect(viewPortBounds.Left, Double.
NegativeInfinity
,
System\Windows\Controls\ScrollViewer.cs (5)
109
public void ScrollToLeftEnd() { EnqueueCommand(Commands.SetHorizontalOffset, Double.
NegativeInfinity
, null); }
120
EnqueueCommand(Commands.SetHorizontalOffset, Double.
NegativeInfinity
, null);
121
EnqueueCommand(Commands.SetVerticalOffset, Double.
NegativeInfinity
, null);
128
EnqueueCommand(Commands.SetHorizontalOffset, Double.
NegativeInfinity
, null);
135
public void ScrollToTop() { EnqueueCommand(Commands.SetVerticalOffset, Double.
NegativeInfinity
, null); }
System\Windows\Input\KeyboardNavigation.cs (6)
2997
double resultDirectionScore = double.
NegativeInfinity
;
2998
double resultRangeScore = double.
NegativeInfinity
;
3001
double partialResultDirectionScore = double.
NegativeInfinity
;
3002
double partialResultRangeScore = double.
NegativeInfinity
;
3028
double directionScore = double.
NegativeInfinity
;
3049
double 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)
287
new() { 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)
73
return 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
;
142
private const double UnusedBufferSlotValue = double.
NegativeInfinity
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (4)
222
return d ==
NegativeInfinity
;
816
static double IFloatingPointIeee754<double>.NegativeInfinity =>
NegativeInfinity
;
1770
result = int.IsOddInteger(n) ?
NegativeInfinity
: NaN;
2469
result = +sign * (long.IsOddInteger(integral) ?
NegativeInfinity
: PositiveInfinity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1037
return sign ? double.
NegativeInfinity
: double.PositiveInfinity;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
84
get => new NFloat(NativeType.
NegativeInfinity
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (2)
1063
TVectorDouble.Create(double.
NegativeInfinity
),
1383
TVectorDouble.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)
1009
return double.
NegativeInfinity
;
1029
result = double.
NegativeInfinity
;
System\Xml\Xsl\Runtime\XmlSortKey.cs (5)
312
_dblVal = (collation.EmptyGreatest != collation.DescendingOrder) ? double.PositiveInfinity : double.
NegativeInfinity
;
342
Debug.Assert(_dblVal == double.
NegativeInfinity
|| _dblVal == double.PositiveInfinity);
343
return (_dblVal == double.
NegativeInfinity
) ? -1 : 1;
348
Debug.Assert(that._dblVal == double.
NegativeInfinity
|| that._dblVal == double.PositiveInfinity);
349
return (that._dblVal == double.
NegativeInfinity
) ? 1 : -1;
System\Xml\Xsl\XPathConvert.cs (1)
86
return NextAfter(x, double.
NegativeInfinity
);
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (2)
2086
return sign == 1 ? double.PositiveInfinity : double.
NegativeInfinity
;
2165
return 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)
384
value = double.
NegativeInfinity
;
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\CSharpSyntaxUtilities.cs (1)
31
case double.
NegativeInfinity
:
System.Windows.Input.Manipulations (2)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (2)
711
(state.InitialVelocity > 0 ? double.PositiveInfinity : double.
NegativeInfinity
);
1120
public double MinBound = double.
NegativeInfinity
;