92 references to NegativeInfinity
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\CSharpSyntaxUtilities.cs (1)
39
case float.
NegativeInfinity
:
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (2)
1135
if (s == "-INF") return Single.
NegativeInfinity
;
1150
result = 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)
268
float f when f is float.
NegativeInfinity
=> "float.NegativeInfinity",
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (1)
268
float 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)
905
float.
NegativeInfinity
=> "float.NegativeInfinity",
Utilities\ValueSetFactory.SingleTC.cs (3)
18
float INumericTC<float>.MinValue => float.
NegativeInfinity
;
42
if (value == float.
NegativeInfinity
)
96
value == 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)
205
float bestScore = float.
NegativeInfinity
;
256
float bestAggregatedScore = float.
NegativeInfinity
;
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\CSharpSyntaxUtilities.cs (1)
39
case float.
NegativeInfinity
:
Microsoft.Extensions.Validation.ValidationsGenerator (1)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (1)
268
float f when f is float.
NegativeInfinity
=> "float.NegativeInfinity",
Microsoft.ML.AutoML (2)
Sweepers\Parameters.cs (2)
378
float prevValue = float.
NegativeInfinity
;
391
float prevValue = float.
NegativeInfinity
;
Microsoft.ML.Core (9)
Utilities\DoubleParser.cs (2)
525
value = Single.
NegativeInfinity
;
532
value = Single.
NegativeInfinity
;
Utilities\MathUtils.cs (6)
113
float result = float.
NegativeInfinity
;
149
float max = float.
NegativeInfinity
;
206
float max = float.
NegativeInfinity
;
217
return float.
NegativeInfinity
;
686
float maxOut = float.
NegativeInfinity
;
801
float max = float.
NegativeInfinity
;
Utilities\SupervisedBinFinder.cs (1)
84
Single curValue = Single.
NegativeInfinity
;
Microsoft.ML.Data (4)
Evaluators\BinaryClassifierEvaluator.cs (1)
748
.Concat(new[] { new RocInfo() { Score = Single.
NegativeInfinity
} }))
Prediction\Calibrator.cs (2)
2014
float maxPrev = float.
NegativeInfinity
;
2068
float 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
;
250
float 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)
196
float maxNormDiff = float.
NegativeInfinity
;
Optimizer\OptimizationMonitor.cs (1)
308
_bestBoundOnMin = float.
NegativeInfinity
;
Microsoft.ML.Sweeper (2)
Parameters.cs (2)
392
float prevValue = float.
NegativeInfinity
;
405
float prevValue = float.
NegativeInfinity
;
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipe.cs (1)
24
Single.MaxValue, Single.Epsilon, Single.
NegativeInfinity
, Single.PositiveInfinity };
Microsoft.ML.Tests (16)
Transformers\ConvertTests.cs (1)
244
ConvN = new float[] { float.
NegativeInfinity
, float.PositiveInfinity },
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.Tokenizers.Tests (1)
SentencePieceTests.cs (1)
653
MakePiece("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)
606
Stat = ReturnMax ? float.
NegativeInfinity
: float.PositiveInfinity;
627
Stat = ReturnMax ? float.
NegativeInfinity
: float.PositiveInfinity;
659
float 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)
40
return 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)
1244
TVectorSingle.Create(float.
NegativeInfinity
),
1560
TVectorSingle.Create(float.
NegativeInfinity
),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (4)
220
return f ==
NegativeInfinity
;
811
static float IFloatingPointIeee754<float>.NegativeInfinity =>
NegativeInfinity
;
1684
result = int.IsOddInteger(n) ?
NegativeInfinity
: NaN;
2157
result = +sign * (int.IsOddInteger(integral) ?
NegativeInfinity
: PositiveInfinity);
System.Private.Xml (2)
System\Xml\XmlConvert.cs (2)
962
return float.
NegativeInfinity
;
982
result = 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)
353
value = float.
NegativeInfinity
;
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\CSharpSyntaxUtilities.cs (1)
39
case float.
NegativeInfinity
:
System.Windows.Forms (1)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2314
=> value is float.
NegativeInfinity
or float.PositiveInfinity ? 1.0f : value;