190 references to VectorMath
System.Private.CoreLib (190)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (35)
638return VectorMath.CosDouble<Vector<double>, Vector<long>>(vector); 652return VectorMath.CosSingle<Vector<float>, Vector<int>, Vector<double>, Vector<long>>(vector); 675return VectorMath.CopySign<Vector<T>, T>(value, sign); 828return VectorMath.DegreesToRadians<Vector<double>, double>(degrees); 843return VectorMath.DegreesToRadians<Vector<float>, float>(degrees); 971return VectorMath.ExpDouble<Vector<double>, Vector<ulong>>(vector); 985return VectorMath.ExpSingle<Vector<float>, Vector<uint>, Vector<double>, Vector<ulong>>(vector); 1328return VectorMath.HypotDouble<Vector<double>, Vector<ulong>>(x, y); 1342return VectorMath.HypotSingle<Vector<float>, Vector<double>>(x, y); 1396return VectorMath.IsEvenIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1400return VectorMath.IsEvenIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1523return VectorMath.IsOddIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1527return VectorMath.IsOddIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1660return VectorMath.Lerp<Vector<double>, double>(x, y, amount); 1679return VectorMath.Lerp<Vector<float>, float>(x, y, amount); 1952return VectorMath.LogDouble<Vector<double>, Vector<long>, Vector<ulong>>(vector); 1966return VectorMath.LogSingle<Vector<float>, Vector<int>, Vector<uint>>(vector); 1994return VectorMath.Log2Double<Vector<double>, Vector<long>, Vector<ulong>>(vector); 2008return VectorMath.Log2Single<Vector<float>, Vector<int>, Vector<uint>>(vector); 2023return VectorMath.Max<Vector<T>, T>(left, right); 2046return VectorMath.MaxMagnitude<Vector<T>, T>(left, right); 2069return VectorMath.MaxMagnitudeNumber<Vector<T>, T>(left, right); 2115return VectorMath.MaxNumber<Vector<T>, T>(left, right); 2138return VectorMath.Min<Vector<T>, T>(left, right); 2161return VectorMath.MinMagnitude<Vector<T>, T>(left, right); 2184return VectorMath.MinMagnitudeNumber<Vector<T>, T>(left, right); 2230return VectorMath.MinNumber<Vector<T>, T>(left, right); 2513return VectorMath.RadiansToDegrees<Vector<double>, double>(radians); 2527return VectorMath.RadiansToDegrees<Vector<float>, float>(radians); 2576public static Vector<double> Round(Vector<double> vector, MidpointRounding mode) => VectorMath.RoundDouble(vector, mode); 2580public static Vector<float> Round(Vector<float> vector, MidpointRounding mode) => VectorMath.RoundSingle(vector, mode); 2824return VectorMath.SinDouble<Vector<double>, Vector<long>>(vector); 2838return VectorMath.SinSingle<Vector<float>, Vector<int>, Vector<double>, Vector<long>>(vector); 2868return VectorMath.SinCosDouble<Vector<double>, Vector<long>>(vector); 2882return VectorMath.SinCosSingle<Vector<float>, Vector<int>, Vector<double>, Vector<long>>(vector);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (40)
651return VectorMath.CopySign<Vector128<T>, T>(value, sign); 732return VectorMath.CosDouble<Vector128<double>, Vector128<long>>(vector); 751return VectorMath.CosSingle<Vector128<float>, Vector128<int>, Vector256<double>, Vector256<long>>(vector); 755return VectorMath.CosSingle<Vector128<float>, Vector128<int>, Vector128<double>, Vector128<long>>(vector); 1457return VectorMath.DegreesToRadians<Vector128<double>, double>(degrees); 1475return VectorMath.DegreesToRadians<Vector128<float>, float>(degrees); 1558return VectorMath.ExpDouble<Vector128<double>, Vector128<ulong>>(vector); 1577return VectorMath.ExpSingle<Vector128<float>, Vector128<uint>, Vector256<double>, Vector256<ulong>>(vector); 1581return VectorMath.ExpSingle<Vector128<float>, Vector128<uint>, Vector128<double>, Vector128<ulong>>(vector); 1812return VectorMath.HypotDouble<Vector128<double>, Vector128<ulong>>(x, y); 1831return VectorMath.HypotSingle<Vector128<float>, Vector256<double>>(x, y); 1835return VectorMath.HypotSingle<Vector128<float>, Vector128<double>>(x, y); 1882return VectorMath.IsEvenIntegerSingle<Vector128<float>, Vector128<uint>>(vector.AsSingle()).As<float, T>(); 1886return VectorMath.IsEvenIntegerDouble<Vector128<double>, Vector128<ulong>>(vector.AsDouble()).As<double, T>(); 2009return VectorMath.IsOddIntegerSingle<Vector128<float>, Vector128<uint>>(vector.AsSingle()).As<float, T>(); 2013return VectorMath.IsOddIntegerDouble<Vector128<double>, Vector128<ulong>>(vector.AsDouble()).As<double, T>(); 2113return VectorMath.Lerp<Vector128<double>, double>(x, y, amount); 2131return VectorMath.Lerp<Vector128<float>, float>(x, y, amount); 2316return VectorMath.LogDouble<Vector128<double>, Vector128<long>, Vector128<ulong>>(vector); 2333return VectorMath.LogSingle<Vector128<float>, Vector128<int>, Vector128<uint>>(vector); 2350return VectorMath.Log2Double<Vector128<double>, Vector128<long>, Vector128<ulong>>(vector); 2367return VectorMath.Log2Single<Vector128<float>, Vector128<int>, Vector128<uint>>(vector); 2385return VectorMath.Max<Vector128<T>, T>(left, right); 2403return VectorMath.MaxMagnitude<Vector128<T>, T>(left, right); 2421return VectorMath.MaxMagnitudeNumber<Vector128<T>, T>(left, right); 2457return VectorMath.MaxNumber<Vector128<T>, T>(left, right); 2475return VectorMath.Min<Vector128<T>, T>(left, right); 2493return VectorMath.MinMagnitude<Vector128<T>, T>(left, right); 2511return VectorMath.MinMagnitudeNumber<Vector128<T>, T>(left, right); 2547return VectorMath.MinNumber<Vector128<T>, T>(left, right); 2851return VectorMath.RadiansToDegrees<Vector128<double>, double>(radians); 2869return VectorMath.RadiansToDegrees<Vector128<float>, float>(radians); 2916public static Vector128<double> Round(Vector128<double> vector, MidpointRounding mode) => VectorMath.RoundDouble(vector, mode); 2920public static Vector128<float> Round(Vector128<float> vector, MidpointRounding mode) => VectorMath.RoundSingle(vector, mode); 3711return VectorMath.SinDouble<Vector128<double>, Vector128<long>>(vector); 3730return VectorMath.SinSingle<Vector128<float>, Vector128<int>, Vector256<double>, Vector256<long>>(vector); 3734return VectorMath.SinSingle<Vector128<float>, Vector128<int>, Vector128<double>, Vector128<long>>(vector); 3752return VectorMath.SinCosDouble<Vector128<double>, Vector128<long>>(vector); 3774return VectorMath.SinCosSingle<Vector128<float>, Vector128<int>, Vector256<double>, Vector256<long>>(vector); 3778return VectorMath.SinCosSingle<Vector128<float>, Vector128<int>, Vector128<double>, Vector128<long>>(vector);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (40)
667return VectorMath.CopySign<Vector256<T>, T>(value, sign); 748return VectorMath.CosDouble<Vector256<double>, Vector256<long>>(vector); 767return VectorMath.CosSingle<Vector256<float>, Vector256<int>, Vector512<double>, Vector512<long>>(vector); 771return VectorMath.CosSingle<Vector256<float>, Vector256<int>, Vector256<double>, Vector256<long>>(vector); 1552return VectorMath.DegreesToRadians<Vector256<double>, double>(degrees); 1570return VectorMath.DegreesToRadians<Vector256<float>, float>(degrees); 1653return VectorMath.ExpDouble<Vector256<double>, Vector256<ulong>>(vector); 1672return VectorMath.ExpSingle<Vector256<float>, Vector256<uint>, Vector512<double>, Vector512<ulong>>(vector); 1676return VectorMath.ExpSingle<Vector256<float>, Vector256<uint>, Vector256<double>, Vector256<ulong>>(vector); 1905return VectorMath.HypotDouble<Vector256<double>, Vector256<ulong>>(x, y); 1924return VectorMath.HypotSingle<Vector256<float>, Vector512<double>>(x, y); 1928return VectorMath.HypotSingle<Vector256<float>, Vector256<double>>(x, y); 1975return VectorMath.IsEvenIntegerSingle<Vector256<float>, Vector256<uint>>(vector.AsSingle()).As<float, T>(); 1979return VectorMath.IsEvenIntegerDouble<Vector256<double>, Vector256<ulong>>(vector.AsDouble()).As<double, T>(); 2102return VectorMath.IsOddIntegerSingle<Vector256<float>, Vector256<uint>>(vector.AsSingle()).As<float, T>(); 2106return VectorMath.IsOddIntegerDouble<Vector256<double>, Vector256<ulong>>(vector.AsDouble()).As<double, T>(); 2206return VectorMath.Lerp<Vector256<double>, double>(x, y, amount); 2224return VectorMath.Lerp<Vector256<float>, float>(x, y, amount); 2409return VectorMath.LogDouble<Vector256<double>, Vector256<long>, Vector256<ulong>>(vector); 2426return VectorMath.LogSingle<Vector256<float>, Vector256<int>, Vector256<uint>>(vector); 2443return VectorMath.Log2Double<Vector256<double>, Vector256<long>, Vector256<ulong>>(vector); 2460return VectorMath.Log2Single<Vector256<float>, Vector256<int>, Vector256<uint>>(vector); 2478return VectorMath.Max<Vector256<T>, T>(left, right); 2496return VectorMath.MaxMagnitude<Vector256<T>, T>(left, right); 2514return VectorMath.MaxMagnitudeNumber<Vector256<T>, T>(left, right); 2550return VectorMath.MaxNumber<Vector256<T>, T>(left, right); 2568return VectorMath.Min<Vector256<T>, T>(left, right); 2586return VectorMath.MinMagnitude<Vector256<T>, T>(left, right); 2604return VectorMath.MinMagnitudeNumber<Vector256<T>, T>(left, right); 2640return VectorMath.MinNumber<Vector256<T>, T>(left, right); 2895return VectorMath.RadiansToDegrees<Vector256<double>, double>(radians); 2913return VectorMath.RadiansToDegrees<Vector256<float>, float>(radians); 2960public static Vector256<double> Round(Vector256<double> vector, MidpointRounding mode) => VectorMath.RoundDouble(vector, mode); 2964public static Vector256<float> Round(Vector256<float> vector, MidpointRounding mode) => VectorMath.RoundSingle(vector, mode); 3703return VectorMath.SinDouble<Vector256<double>, Vector256<long>>(vector); 3722return VectorMath.SinSingle<Vector256<float>, Vector256<int>, Vector512<double>, Vector512<long>>(vector); 3726return VectorMath.SinSingle<Vector256<float>, Vector256<int>, Vector256<double>, Vector256<long>>(vector); 3744return VectorMath.SinCosDouble<Vector256<double>, Vector256<long>>(vector); 3766return VectorMath.SinCosSingle<Vector256<float>, Vector256<int>, Vector512<double>, Vector512<long>>(vector); 3770return VectorMath.SinCosSingle<Vector256<float>, Vector256<int>, Vector256<double>, Vector256<long>>(vector);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (35)
580return VectorMath.CopySign<Vector512<T>, T>(value, sign); 658return VectorMath.CosDouble<Vector512<double>, Vector512<long>>(vector); 675return VectorMath.CosSingle<Vector512<float>, Vector512<int>, Vector512<double>, Vector512<long>>(vector); 1591return VectorMath.DegreesToRadians<Vector512<double>, double>(degrees); 1609return VectorMath.DegreesToRadians<Vector512<float>, float>(degrees); 1693return VectorMath.ExpDouble<Vector512<double>, Vector512<ulong>>(vector); 1710return VectorMath.ExpSingle<Vector512<float>, Vector512<uint>, Vector512<double>, Vector512<ulong>>(vector); 1938return VectorMath.HypotDouble<Vector512<double>, Vector512<ulong>>(x, y); 1955return VectorMath.HypotSingle<Vector512<float>, Vector512<double>>(x, y); 2001return VectorMath.IsEvenIntegerSingle<Vector512<float>, Vector512<uint>>(vector.AsSingle()).As<float, T>(); 2005return VectorMath.IsEvenIntegerDouble<Vector512<double>, Vector512<ulong>>(vector.AsDouble()).As<double, T>(); 2128return VectorMath.IsOddIntegerSingle<Vector512<float>, Vector512<uint>>(vector.AsSingle()).As<float, T>(); 2132return VectorMath.IsOddIntegerDouble<Vector512<double>, Vector512<ulong>>(vector.AsDouble()).As<double, T>(); 2232return VectorMath.Lerp<Vector512<double>, double>(x, y, amount); 2250return VectorMath.Lerp<Vector512<float>, float>(x, y, amount); 2435return VectorMath.LogDouble<Vector512<double>, Vector512<long>, Vector512<ulong>>(vector); 2452return VectorMath.LogSingle<Vector512<float>, Vector512<int>, Vector512<uint>>(vector); 2469return VectorMath.Log2Double<Vector512<double>, Vector512<long>, Vector512<ulong>>(vector); 2486return VectorMath.Log2Single<Vector512<float>, Vector512<int>, Vector512<uint>>(vector); 2504return VectorMath.Max<Vector512<T>, T>(left, right); 2522return VectorMath.MaxMagnitude<Vector512<T>, T>(left, right); 2540return VectorMath.MaxMagnitudeNumber<Vector512<T>, T>(left, right); 2576return VectorMath.MaxNumber<Vector512<T>, T>(left, right); 2594return VectorMath.Min<Vector512<T>, T>(left, right); 2612return VectorMath.MinMagnitude<Vector512<T>, T>(left, right); 2630return VectorMath.MinMagnitudeNumber<Vector512<T>, T>(left, right); 2666return VectorMath.MinNumber<Vector512<T>, T>(left, right); 2920return VectorMath.RadiansToDegrees<Vector512<double>, double>(radians); 2938return VectorMath.RadiansToDegrees<Vector512<float>, float>(radians); 2985public static Vector512<double> Round(Vector512<double> vector, MidpointRounding mode) => VectorMath.RoundDouble(vector, mode); 2989public static Vector512<float> Round(Vector512<float> vector, MidpointRounding mode) => VectorMath.RoundSingle(vector, mode); 3728return VectorMath.SinDouble<Vector512<double>, Vector512<long>>(vector); 3745return VectorMath.SinSingle<Vector512<float>, Vector512<int>, Vector512<double>, Vector512<long>>(vector); 3762return VectorMath.SinCosDouble<Vector512<double>, Vector512<long>>(vector); 3782return VectorMath.SinCosSingle<Vector512<float>, Vector512<int>, Vector512<double>, Vector512<long>>(vector);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (40)
612return VectorMath.CopySign<Vector64<T>, T>(value, sign); 714return VectorMath.CosDouble<Vector64<double>, Vector64<long>>(vector); 732return VectorMath.CosSingle<Vector64<float>, Vector64<int>, Vector128<double>, Vector128<long>>(vector); 736return VectorMath.CosSingle<Vector64<float>, Vector64<int>, Vector64<double>, Vector64<long>>(vector); 1295return VectorMath.DegreesToRadians<Vector64<double>, double>(degrees); 1312return VectorMath.DegreesToRadians<Vector64<float>, float>(degrees); 1419return VectorMath.ExpDouble<Vector64<double>, Vector64<ulong>>(vector); 1437return VectorMath.ExpSingle<Vector64<float>, Vector64<uint>, Vector128<double>, Vector128<ulong>>(vector); 1441return VectorMath.ExpSingle<Vector64<float>, Vector64<uint>, Vector64<double>, Vector64<ulong>>(vector); 1735return VectorMath.HypotDouble<Vector64<double>, Vector64<ulong>>(x, y); 1754return VectorMath.HypotSingle<Vector64<float>, Vector128<double>>(x, y); 1758return VectorMath.HypotSingle<Vector64<float>, Vector64<double>>(x, y); 1811return VectorMath.IsEvenIntegerSingle<Vector64<float>, Vector64<uint>>(vector.AsSingle()).As<float, T>(); 1815return VectorMath.IsEvenIntegerDouble<Vector64<double>, Vector64<ulong>>(vector.AsDouble()).As<double, T>(); 1938return VectorMath.IsOddIntegerSingle<Vector64<float>, Vector64<uint>>(vector.AsSingle()).As<float, T>(); 1942return VectorMath.IsOddIntegerDouble<Vector64<double>, Vector64<ulong>>(vector.AsDouble()).As<double, T>(); 2069return VectorMath.Lerp<Vector64<double>, double>(x, y, amount); 2088return VectorMath.Lerp<Vector64<float>, float>(x, y, amount); 2313return VectorMath.LogDouble<Vector64<double>, Vector64<long>, Vector64<ulong>>(vector); 2329return VectorMath.LogSingle<Vector64<float>, Vector64<int>, Vector64<uint>>(vector); 2359return VectorMath.Log2Double<Vector64<double>, Vector64<long>, Vector64<ulong>>(vector); 2375return VectorMath.Log2Single<Vector64<float>, Vector64<int>, Vector64<uint>>(vector); 2390return VectorMath.Max<Vector64<T>, T>(left, right); 2413return VectorMath.MaxMagnitude<Vector64<T>, T>(left, right); 2436return VectorMath.MaxMagnitudeNumber<Vector64<T>, T>(left, right); 2482return VectorMath.MaxNumber<Vector64<T>, T>(left, right); 2505return VectorMath.Min<Vector64<T>, T>(left, right); 2528return VectorMath.MinMagnitude<Vector64<T>, T>(left, right); 2551return VectorMath.MinMagnitudeNumber<Vector64<T>, T>(left, right); 2597return VectorMath.MinNumber<Vector64<T>, T>(left, right); 2913return VectorMath.RadiansToDegrees<Vector64<double>, double>(radians); 2930return VectorMath.RadiansToDegrees<Vector64<float>, float>(radians); 2982public static Vector64<double> Round(Vector64<double> vector, MidpointRounding mode) => VectorMath.RoundDouble(vector, mode); 2989public static Vector64<float> Round(Vector64<float> vector, MidpointRounding mode) => VectorMath.RoundSingle(vector, mode); 3605return VectorMath.SinDouble<Vector64<double>, Vector64<long>>(vector); 3623return VectorMath.SinSingle<Vector64<float>, Vector64<int>, Vector128<double>, Vector128<long>>(vector); 3627return VectorMath.SinSingle<Vector64<float>, Vector64<int>, Vector64<double>, Vector64<long>>(vector); 3660return VectorMath.SinCosDouble<Vector64<double>, Vector64<long>>(vector); 3678return VectorMath.SinCosSingle<Vector64<float>, Vector64<int>, Vector128<double>, Vector128<long>>(vector); 3682return VectorMath.SinCosSingle<Vector64<float>, Vector64<int>, Vector64<double>, Vector64<long>>(vector);