92 references to NegativeInfinity
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\CSharpSyntaxUtilities.cs (1)
39case float.NegativeInfinity:
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (2)
1135if (s == "-INF") return Single.NegativeInfinity; 1150result = Single.NegativeInfinity;
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
84{ float.NegativeInfinity, nameof(float.NegativeInfinity) },
Microsoft.AspNetCore.App.Analyzers (1)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (1)
268float f when f is float.NegativeInfinity => "float.NegativeInfinity",
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (1)
268float f when f is float.NegativeInfinity => "float.NegativeInfinity",
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
84{ float.NegativeInfinity, nameof(float.NegativeInfinity) },
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
84{ float.NegativeInfinity, nameof(float.NegativeInfinity) },
Microsoft.CodeAnalysis.CSharp (4)
Binder\PatternExplainer.cs (1)
905float.NegativeInfinity => "float.NegativeInfinity",
Utilities\ValueSetFactory.SingleTC.cs (3)
18float INumericTC<float>.MinValue => float.NegativeInfinity; 42if (value == float.NegativeInfinity) 96value == float.NegativeInfinity ? "-Inf" :
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
84{ float.NegativeInfinity, nameof(float.NegativeInfinity) },
Microsoft.Extensions.AI (2)
ChatRouting\SemanticRoutingChatClient.cs (2)
205float bestScore = float.NegativeInfinity; 256float bestAggregatedScore = float.NegativeInfinity;
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\CSharpSyntaxUtilities.cs (1)
39case float.NegativeInfinity:
Microsoft.Extensions.Validation.ValidationsGenerator (1)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (1)
268float f when f is float.NegativeInfinity => "float.NegativeInfinity",
Microsoft.ML.AutoML (2)
Sweepers\Parameters.cs (2)
378float prevValue = float.NegativeInfinity; 391float prevValue = float.NegativeInfinity;
Microsoft.ML.Core (9)
Utilities\DoubleParser.cs (2)
525value = Single.NegativeInfinity; 532value = Single.NegativeInfinity;
Utilities\MathUtils.cs (6)
113float result = float.NegativeInfinity; 149float max = float.NegativeInfinity; 206float max = float.NegativeInfinity; 217return float.NegativeInfinity; 686float maxOut = float.NegativeInfinity; 801float max = float.NegativeInfinity;
Utilities\SupervisedBinFinder.cs (1)
84Single curValue = Single.NegativeInfinity;
Microsoft.ML.Data (4)
Evaluators\BinaryClassifierEvaluator.cs (1)
748.Concat(new[] { new RocInfo() { Score = Single.NegativeInfinity } }))
Prediction\Calibrator.cs (2)
2014float maxPrev = float.NegativeInfinity; 2068float maxPrev = float.NegativeInfinity;
Transforms\NormalizeColumnSng.cs (1)
334_max[i] = TFloat.NegativeInfinity;
Microsoft.ML.FastTree (4)
Training\EarlyStoppingCriteria.cs (4)
90_bestScore = LowerIsBetter ? float.PositiveInfinity : float.NegativeInfinity; 250float recentBestScore = LowerIsBetter ? float.PositiveInfinity : float.NegativeInfinity; 501_prevScore = LowerIsBetter ? float.PositiveInfinity : float.NegativeInfinity; 509_prevScore = LowerIsBetter ? float.PositiveInfinity : float.NegativeInfinity;
Microsoft.ML.StandardTrainers (2)
Optimizer\DifferentiableFunction.cs (1)
196float maxNormDiff = float.NegativeInfinity;
Optimizer\OptimizationMonitor.cs (1)
308_bestBoundOnMin = float.NegativeInfinity;
Microsoft.ML.Sweeper (2)
Parameters.cs (2)
392float prevValue = float.NegativeInfinity; 405float prevValue = float.NegativeInfinity;
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
24Single.MaxValue, Single.Epsilon, Single.NegativeInfinity, Single.PositiveInfinity };
Microsoft.ML.Tests (16)
Transformers\ConvertTests.cs (1)
244ConvN = new float[] { float.NegativeInfinity, float.PositiveInfinity },
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.Tokenizers.Tests (1)
SentencePieceTests.cs (1)
653MakePiece("neg_inf", float.NegativeInfinity, 1),
Microsoft.ML.TorchSharp (1)
NasBert\Modules\MultiHeadAttention.cs (1)
279.masked_fill(keyPaddingMaskPad, float.NegativeInfinity)
Microsoft.ML.Transforms (3)
MissingValueReplacingUtils.cs (3)
606Stat = ReturnMax ? float.NegativeInfinity : float.PositiveInfinity; 627Stat = ReturnMax ? float.NegativeInfinity : float.PositiveInfinity; 659float bound = ReturnMax ? float.NegativeInfinity : float.PositiveInfinity;
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
84{ float.NegativeInfinity, nameof(float.NegativeInfinity) },
System.Numerics.Tensors (8)
System\Numerics\Tensors\TensorPrimitives.Single.cs (8)
22/// If a value is equal to <see cref="float.NegativeInfinity"/> or <see cref="float.PositiveInfinity"/>, the result stored into the corresponding destination location is set to <see cref="float.PositiveInfinity"/>. 136/// If a value is equal to <see cref="float.NegativeInfinity"/> or <see cref="float.PositiveInfinity"/>, the result stored into the corresponding destination location is set to <see cref="float.PositiveInfinity"/>. 161/// If any element in either input tensor is equal to <see cref="float.NegativeInfinity"/>, <see cref="float.PositiveInfinity"/>, or <see cref="float.NaN"/>, 279/// If a value equals <see cref="float.NegativeInfinity"/>, the result stored into the corresponding destination location is set to 0. 365/// If a value equals 0, the result stored into the corresponding destination location is set to <see cref="float.NegativeInfinity"/>. 388/// If a value equals 0, the result stored into the corresponding destination location is set to <see cref="float.NegativeInfinity"/>. 815/// If a value is equal to <see cref="float.NegativeInfinity"/>, <see cref="float.PositiveInfinity"/>, or <see cref="float.NaN"/>, 967/// If a value is equal to <see cref="float.NegativeInfinity"/>, the corresponding destination location is set to -1.
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Float.cs (1)
40return TryParseAsSpecialFloatingPoint(source, float.PositiveInfinity, float.NegativeInfinity, float.NaN, out value, out bytesConsumed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (2)
139/// <summary>Gets a vector whose elements are equal to <see cref="float.NegativeInfinity" />.</summary> 140/// <value>A vector whose elements are equal to <see cref="float.NegativeInfinity" /> (that is, it returns the vector <c>Create(float.NegativeInfinity)</c>).</value>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (2)
1244TVectorSingle.Create(float.NegativeInfinity), 1560TVectorSingle.Create(float.NegativeInfinity),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (4)
220return f == NegativeInfinity; 811static float IFloatingPointIeee754<float>.NegativeInfinity => NegativeInfinity; 1684result = int.IsOddInteger(n) ? NegativeInfinity : NaN; 2157result = +sign * (int.IsOddInteger(integral) ? NegativeInfinity : PositiveInfinity);
System.Private.Xml (2)
System\Xml\XmlConvert.cs (2)
962return float.NegativeInfinity; 982result = float.NegativeInfinity;
System.Text.Json (3)
System\Text\Json\Document\JsonElement.cs (2)
914/// <see cref="float.NegativeInfinity"/>) is emitted. 945/// <see cref="float.NegativeInfinity"/>) for values larger than
System\Text\Json\Reader\JsonReaderHelper.cs (1)
353value = float.NegativeInfinity;
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\CSharpSyntaxUtilities.cs (1)
39case float.NegativeInfinity:
System.Windows.Forms (1)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2314=> value is float.NegativeInfinity or float.PositiveInfinity ? 1.0f : value;