39 references to Sqrt
System.Numerics.Tensors (19)
System\Numerics\Tensors\netcore\Tensor.cs (5)
3235return result.Item1 / (T.Sqrt(result.Item2) * T.Sqrt(result.Item3)); 3325return T.Sqrt(result); 4517return T.Sqrt(result); 5011return T.Sqrt(variance);
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
2034destination = T.Sqrt(x);
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (8)
372dotProduct / (T.Sqrt(xSumOfSquares) * T.Sqrt(ySumOfSquares)); 376Vector128.Sum(dotProductVector) / (T.Sqrt(Vector128.Sum(xSumOfSquaresVector)) * T.Sqrt(Vector128.Sum(ySumOfSquaresVector))); 380Vector256.Sum(dotProductVector) / (T.Sqrt(Vector256.Sum(xSumOfSquaresVector)) * T.Sqrt(Vector256.Sum(ySumOfSquaresVector))); 384Vector512.Sum(dotProductVector) / (T.Sqrt(Vector512.Sum(xSumOfSquaresVector)) * T.Sqrt(Vector512.Sum(ySumOfSquaresVector)));
System\Numerics\Tensors\netcore\TensorPrimitives.Distance.cs (1)
42return T.Sqrt(Aggregate<T, SubtractSquaredOperator<T>, AddOperator<T>>(x, y));
System\Numerics\Tensors\netcore\TensorPrimitives.Norm.cs (1)
27T.Sqrt(SumOfSquares(x));
System\Numerics\Tensors\netcore\TensorPrimitives.Reciprocal.cs (1)
112public static T Invoke(T x) => T.One / T.Sqrt(x);
System\Numerics\Tensors\netcore\TensorPrimitives.Sqrt.cs (1)
36public static T Invoke(T x) => T.Sqrt(x);
System\Numerics\Tensors\netcore\TensorPrimitives.StdDev.cs (1)
30return 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)
91static 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)
36private static readonly T s_sqrtRescaleThreshold = T.MaxValue / (T.Sqrt(T.CreateChecked(2)) + T.One); 39private static readonly T s_asinOverflowThreshold = T.Sqrt(T.MaxValue) / T.CreateChecked(2); 890bPrime = x / T.Sqrt((a + x) * amx); 898bPrime = x / y / T.Sqrt((a + x) * t); 915v = Log1P(am1 + y * T.Sqrt(t * (a + T.One))); 920v = Log1P(am1 + T.Sqrt(am1 * (a + T.One))); 926v = T.Log(a + T.Sqrt((a - T.One) * (a + T.One))); 1043return new Complex<T>(T.Zero, T.CopySign(T.Sqrt(-real), imaginary)); 1046return new Complex<T>(T.Sqrt(real), T.CopySign(T.Zero, imaginary)); 1068x = T.Sqrt((T.Hypot(realCopy, imaginaryCopy) + realCopy) * half); 1073y = T.Sqrt((T.Hypot(realCopy, imaginaryCopy) - realCopy) * half);