15 implementations of IsInfinity
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
629
static bool INumberBase<byte>.
IsInfinity
(byte value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1509
static bool INumberBase<char>.
IsInfinity
(char value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1383
static bool INumberBase<decimal>.
IsInfinity
(decimal value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1357
static bool INumberBase<Int128>.
IsInfinity
(Int128 value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
729
static bool INumberBase<short>.
IsInfinity
(short value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
771
static bool INumberBase<int>.
IsInfinity
(int value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
768
static bool INumberBase<long>.
IsInfinity
(long value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
791
static bool INumberBase<nint>.
IsInfinity
(nint value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
708
static bool INumberBase<sbyte>.
IsInfinity
(sbyte value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1554
static bool INumberBase<UInt128>.
IsInfinity
(UInt128 value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
634
static bool INumberBase<ushort>.
IsInfinity
(ushort value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
699
static bool INumberBase<uint>.
IsInfinity
(uint value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
706
static bool INumberBase<ulong>.
IsInfinity
(ulong value) => false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
705
static bool INumberBase<nuint>.
IsInfinity
(nuint value) => false;
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
4195
static bool INumberBase<BigInteger>.
IsInfinity
(BigInteger value) => false;
57 references to IsInfinity
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorPrimitives.IsInfinity.cs (1)
55
public static bool Invoke(T x) => T.
IsInfinity
(x);
System.Private.CoreLib (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
628
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1508
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1382
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1356
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
728
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
770
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
767
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
790
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (1)
3802
if (TFloat.
IsInfinity
(value))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (1)
148
/// <remarks>This function returning <c>false</c> does not imply that <see cref="
IsInfinity
(TSelf)" /> will return <c>true</c>. <c>NaN</c> is not finite nor infinite.</remarks>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
707
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1553
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
633
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
698
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
705
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
704
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
System.Runtime.Numerics (40)
System\Numerics\BigInteger.cs (1)
4194
/// <inheritdoc cref="INumberBase{TSelf}.
IsInfinity
(TSelf)" />
System\Numerics\Complex.Generic.cs (39)
192
if (T.
IsInfinity
(a) || T.
IsInfinity
(b))
195
a = T.CopySign(T.
IsInfinity
(a) ? T.One : T.Zero, a);
196
b = T.CopySign(T.
IsInfinity
(b) ? T.One : T.Zero, b);
211
if (T.
IsInfinity
(c) || T.
IsInfinity
(d))
214
c = T.CopySign(T.
IsInfinity
(c) ? T.One : T.Zero, c);
215
d = T.CopySign(T.
IsInfinity
(d) ? T.One : T.Zero, d);
230
if (!recalc && (T.
IsInfinity
(a * c) || T.
IsInfinity
(b * d) || T.
IsInfinity
(a * d) || T.
IsInfinity
(b * c)))
329
else if ((T.
IsInfinity
(a) || T.
IsInfinity
(b)) && T.IsFinite(c) && T.IsFinite(d))
332
a = T.CopySign(T.
IsInfinity
(a) ? T.One : T.Zero, a);
333
b = T.CopySign(T.
IsInfinity
(b) ? T.One : T.Zero, b);
338
else if ((T.
IsInfinity
(c) || T.
IsInfinity
(d)) && T.IsFinite(a) && T.IsFinite(b))
341
c = T.CopySign(T.
IsInfinity
(c) ? T.One : T.Zero, c);
342
d = T.CopySign(T.
IsInfinity
(d) ? T.One : T.Zero, d);
552
if (T.
IsInfinity
(a))
556
im = T.
IsInfinity
(absB) ? T.Pi / T.CreateChecked(4) :
566
re = T.
IsInfinity
(absB) ? T.PositiveInfinity : T.NaN;
572
re = T.
IsInfinity
(absB) ? T.PositiveInfinity : T.NaN;
573
im = T.
IsInfinity
(absB) ? T.Pi / T.CreateChecked(2) : T.NaN;
678
if (T.
IsInfinity
(x))
683
re = T.
IsInfinity
(absY) ? T.Pi * T.CreateChecked(0.75) : T.IsNaN(absY) ? T.NaN : T.Pi;
688
re = T.
IsInfinity
(absY) ? T.Pi / T.CreateChecked(4) : T.IsNaN(absY) ? T.NaN : T.Zero;
696
im = T.
IsInfinity
(absY) ? T.NegativeInfinity : T.NaN;
702
if (T.
IsInfinity
(absY))
815
if (T.
IsInfinity
(a))
824
re = T.
IsInfinity
(absB) ? T.Zero : T.NaN;
825
im = T.
IsInfinity
(absB) ? T.Pi / T.CreateChecked(2) : T.NaN;
831
if (T.
IsInfinity
(absB))
933
public static bool IsInfinity(Complex<T> value) => T.
IsInfinity
(value.m_real) || T.
IsInfinity
(value.m_imaginary);
963
if (T.
IsInfinity
(real))
1009
if (T.
IsInfinity
(imaginary))
1015
if (T.
IsInfinity
(real))