39 references to Sqrt
System.Numerics.Tensors (19)
System\Numerics\Tensors\netcore\Tensor.cs (5)
3235
return result.Item1 / (T.
Sqrt
(result.Item2) * T.
Sqrt
(result.Item3));
3325
return T.
Sqrt
(result);
4517
return T.
Sqrt
(result);
5011
return T.
Sqrt
(variance);
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
2034
destination = T.
Sqrt
(x);
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (8)
372
dotProduct / (T.
Sqrt
(xSumOfSquares) * T.
Sqrt
(ySumOfSquares));
376
Vector128.Sum(dotProductVector) / (T.
Sqrt
(Vector128.Sum(xSumOfSquaresVector)) * T.
Sqrt
(Vector128.Sum(ySumOfSquaresVector)));
380
Vector256.Sum(dotProductVector) / (T.
Sqrt
(Vector256.Sum(xSumOfSquaresVector)) * T.
Sqrt
(Vector256.Sum(ySumOfSquaresVector)));
384
Vector512.Sum(dotProductVector) / (T.
Sqrt
(Vector512.Sum(xSumOfSquaresVector)) * T.
Sqrt
(Vector512.Sum(ySumOfSquaresVector)));
System\Numerics\Tensors\netcore\TensorPrimitives.Distance.cs (1)
42
return T.
Sqrt
(Aggregate<T, SubtractSquaredOperator<T>, AddOperator<T>>(x, y));
System\Numerics\Tensors\netcore\TensorPrimitives.Norm.cs (1)
27
T.
Sqrt
(SumOfSquares(x));
System\Numerics\Tensors\netcore\TensorPrimitives.Reciprocal.cs (1)
112
public static T Invoke(T x) => T.One / T.
Sqrt
(x);
System\Numerics\Tensors\netcore\TensorPrimitives.Sqrt.cs (1)
36
public static T Invoke(T x) => T.
Sqrt
(x);
System\Numerics\Tensors\netcore\TensorPrimitives.StdDev.cs (1)
30
return T.
Sqrt
(variance);
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1822
/// <inheritdoc cref="IRootFunctions{TSelf}.
Sqrt
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2269
/// <inheritdoc cref="IRootFunctions{TSelf}.
Sqrt
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1992
/// <inheritdoc cref="IRootFunctions{TSelf}.
Sqrt
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
1074
/// <inheritdoc cref="IRootFunctions{TSelf}.
Sqrt
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
1085
/// <inheritdoc cref="IRootFunctions{TSelf}.
Sqrt
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
1078
/// <inheritdoc cref="IRootFunctions{TSelf}.
Sqrt
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPointIeee754.cs (1)
91
static virtual TSelf ReciprocalSqrtEstimate(TSelf x) => TSelf.One / TSelf.
Sqrt
(x);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1767
/// <inheritdoc cref="IRootFunctions{TSelf}.
Sqrt
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1736
/// <inheritdoc cref="IRootFunctions{TSelf}.
Sqrt
(TSelf)" />
System.Runtime.Numerics (11)
System\Numerics\Complex.Generic.cs (11)
36
private static readonly T s_sqrtRescaleThreshold = T.MaxValue / (T.
Sqrt
(T.CreateChecked(2)) + T.One);
39
private static readonly T s_asinOverflowThreshold = T.
Sqrt
(T.MaxValue) / T.CreateChecked(2);
890
bPrime = x / T.
Sqrt
((a + x) * amx);
898
bPrime = x / y / T.
Sqrt
((a + x) * t);
915
v = Log1P(am1 + y * T.
Sqrt
(t * (a + T.One)));
920
v = Log1P(am1 + T.
Sqrt
(am1 * (a + T.One)));
926
v = T.Log(a + T.
Sqrt
((a - T.One) * (a + T.One)));
1043
return new Complex<T>(T.Zero, T.CopySign(T.
Sqrt
(-real), imaginary));
1046
return new Complex<T>(T.
Sqrt
(real), T.CopySign(T.Zero, imaginary));
1068
x = T.
Sqrt
((T.Hypot(realCopy, imaginaryCopy) + realCopy) * half);
1073
y = T.
Sqrt
((T.Hypot(realCopy, imaginaryCopy) - realCopy) * half);