207 references to VectorMath
System.Private.CoreLib (207)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (35)
708return VectorMath.CosDouble<Vector<double>, Vector<long>>(vector); 722return VectorMath.CosSingle<Vector<float>, Vector<int>, Vector<double>, Vector<long>>(vector); 741return VectorMath.CopySign<Vector<T>, T>(value, sign); 1183return VectorMath.DegreesToRadiansDouble<Vector<double>, Vector<ulong>>(degrees); 1198return VectorMath.DegreesToRadiansSingle<Vector<float>, Vector<double>>(degrees); 1326return VectorMath.ExpDouble<Vector<double>, Vector<ulong>>(vector); 1340return VectorMath.ExpSingle<Vector<float>, Vector<uint>, Vector<double>, Vector<ulong>>(vector); 1674return VectorMath.HypotDouble<Vector<double>, Vector<ulong>>(x, y); 1688return VectorMath.HypotSingle<Vector<float>, Vector<double>>(x, y); 1742return VectorMath.IsEvenIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1746return VectorMath.IsEvenIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1865return VectorMath.IsOddIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1869return VectorMath.IsOddIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1998return VectorMath.Lerp<Vector<double>, double>(x, y, amount); 2017return VectorMath.Lerp<Vector<float>, float>(x, y, amount); 2290return VectorMath.LogDouble<Vector<double>, Vector<long>, Vector<ulong>>(vector); 2304return VectorMath.LogSingle<Vector<float>, Vector<int>, Vector<uint>>(vector); 2332return VectorMath.Log2Double<Vector<double>, Vector<long>, Vector<ulong>>(vector); 2346return VectorMath.Log2Single<Vector<float>, Vector<int>, Vector<uint>>(vector); 2361return VectorMath.Max<Vector<T>, T>(left, right); 2384return VectorMath.MaxMagnitude<Vector<T>, T>(left, right); 2407return VectorMath.MaxMagnitudeNumber<Vector<T>, T>(left, right); 2453return VectorMath.MaxNumber<Vector<T>, T>(left, right); 2476return VectorMath.Min<Vector<T>, T>(left, right); 2499return VectorMath.MinMagnitude<Vector<T>, T>(left, right); 2522return VectorMath.MinMagnitudeNumber<Vector<T>, T>(left, right); 2568return VectorMath.MinNumber<Vector<T>, T>(left, right); 2851return VectorMath.RadiansToDegreesDouble<Vector<double>, Vector<ulong>>(radians); 2865return VectorMath.RadiansToDegreesSingle<Vector<float>, Vector<double>>(radians); 2905public static Vector<double> Round(Vector<double> vector, MidpointRounding mode) => VectorMath.RoundDouble(vector, mode); 2909public static Vector<float> Round(Vector<float> vector, MidpointRounding mode) => VectorMath.RoundSingle(vector, mode); 3153return VectorMath.SinDouble<Vector<double>, Vector<long>>(vector); 3167return VectorMath.SinSingle<Vector<float>, Vector<int>, Vector<double>, Vector<long>>(vector); 3197return VectorMath.SinCosDouble<Vector<double>, Vector<long>>(vector); 3211return VectorMath.SinCosSingle<Vector<float>, Vector<int>, Vector<double>, Vector<long>>(vector);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (45)
728return VectorMath.CopySign<Vector128<T>, T>(value, sign); 812return VectorMath.AsinDouble<Vector128<double>, Vector128<ulong>>(vector); 834return VectorMath.AsinSingle<Vector128<float>, Vector128<int>, Vector256<double>, Vector256<long>>(vector); 838return VectorMath.AsinSingle<Vector128<float>, Vector128<int>, Vector128<double>, Vector128<long>>(vector); 856return VectorMath.CosDouble<Vector128<double>, Vector128<long>>(vector); 875return VectorMath.CosSingle<Vector128<float>, Vector128<int>, Vector256<double>, Vector256<long>>(vector); 879return VectorMath.CosSingle<Vector128<float>, Vector128<int>, Vector128<double>, Vector128<long>>(vector); 1739return VectorMath.DegreesToRadiansDouble<Vector128<double>, Vector128<ulong>>(degrees); 1759return VectorMath.DegreesToRadiansSingle<Vector128<float>, Vector256<double>>(degrees); 1763return VectorMath.DegreesToRadiansSingle<Vector128<float>, Vector128<double>>(degrees); 1847return VectorMath.ExpDouble<Vector128<double>, Vector128<ulong>>(vector); 1866return VectorMath.ExpSingle<Vector128<float>, Vector128<uint>, Vector256<double>, Vector256<ulong>>(vector); 1870return VectorMath.ExpSingle<Vector128<float>, Vector128<uint>, Vector128<double>, Vector128<ulong>>(vector); 2093return VectorMath.HypotDouble<Vector128<double>, Vector128<ulong>>(x, y); 2112return VectorMath.HypotSingle<Vector128<float>, Vector256<double>>(x, y); 2116return VectorMath.HypotSingle<Vector128<float>, Vector128<double>>(x, y); 2159return VectorMath.IsEvenIntegerSingle<Vector128<float>, Vector128<uint>>(vector.AsSingle()).As<float, T>(); 2163return VectorMath.IsEvenIntegerDouble<Vector128<double>, Vector128<ulong>>(vector.AsDouble()).As<double, T>(); 2282return VectorMath.IsOddIntegerSingle<Vector128<float>, Vector128<uint>>(vector.AsSingle()).As<float, T>(); 2286return VectorMath.IsOddIntegerDouble<Vector128<double>, Vector128<ulong>>(vector.AsDouble()).As<double, T>(); 2382return VectorMath.Lerp<Vector128<double>, double>(x, y, amount); 2400return VectorMath.Lerp<Vector128<float>, float>(x, y, amount); 2585return VectorMath.LogDouble<Vector128<double>, Vector128<long>, Vector128<ulong>>(vector); 2602return VectorMath.LogSingle<Vector128<float>, Vector128<int>, Vector128<uint>>(vector); 2619return VectorMath.Log2Double<Vector128<double>, Vector128<long>, Vector128<ulong>>(vector); 2636return VectorMath.Log2Single<Vector128<float>, Vector128<int>, Vector128<uint>>(vector); 2654return VectorMath.Max<Vector128<T>, T>(left, right); 2672return VectorMath.MaxMagnitude<Vector128<T>, T>(left, right); 2690return VectorMath.MaxMagnitudeNumber<Vector128<T>, T>(left, right); 2726return VectorMath.MaxNumber<Vector128<T>, T>(left, right); 2744return VectorMath.Min<Vector128<T>, T>(left, right); 2762return VectorMath.MinMagnitude<Vector128<T>, T>(left, right); 2780return VectorMath.MinMagnitudeNumber<Vector128<T>, T>(left, right); 2816return VectorMath.MinNumber<Vector128<T>, T>(left, right); 3120return VectorMath.RadiansToDegreesDouble<Vector128<double>, Vector128<ulong>>(radians); 3140return VectorMath.RadiansToDegreesSingle<Vector128<float>, Vector256<double>>(radians); 3144return VectorMath.RadiansToDegreesSingle<Vector128<float>, Vector128<double>>(radians); 3184public static Vector128<double> Round(Vector128<double> vector, MidpointRounding mode) => VectorMath.RoundDouble(vector, mode); 3188public static Vector128<float> Round(Vector128<float> vector, MidpointRounding mode) => VectorMath.RoundSingle(vector, mode); 3640return VectorMath.SinDouble<Vector128<double>, Vector128<long>>(vector); 3659return VectorMath.SinSingle<Vector128<float>, Vector128<int>, Vector256<double>, Vector256<long>>(vector); 3663return VectorMath.SinSingle<Vector128<float>, Vector128<int>, Vector128<double>, Vector128<long>>(vector); 3681return VectorMath.SinCosDouble<Vector128<double>, Vector128<long>>(vector); 3703return VectorMath.SinCosSingle<Vector128<float>, Vector128<int>, Vector256<double>, Vector256<long>>(vector); 3707return VectorMath.SinCosSingle<Vector128<float>, Vector128<int>, Vector128<double>, Vector128<long>>(vector);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (45)
734return VectorMath.CopySign<Vector256<T>, T>(value, sign); 815return VectorMath.AsinDouble<Vector256<double>, Vector256<ulong>>(vector); 834return VectorMath.AsinSingle<Vector256<float>, Vector256<int>, Vector512<double>, Vector512<long>>(vector); 838return VectorMath.AsinSingle<Vector256<float>, Vector256<int>, Vector256<double>, Vector256<long>>(vector); 856return VectorMath.CosDouble<Vector256<double>, Vector256<long>>(vector); 875return VectorMath.CosSingle<Vector256<float>, Vector256<int>, Vector512<double>, Vector512<long>>(vector); 879return VectorMath.CosSingle<Vector256<float>, Vector256<int>, Vector256<double>, Vector256<long>>(vector); 1833return VectorMath.DegreesToRadiansDouble<Vector256<double>, Vector256<ulong>>(degrees); 1853return VectorMath.DegreesToRadiansSingle<Vector256<float>, Vector512<double>>(degrees); 1857return VectorMath.DegreesToRadiansSingle<Vector256<float>, Vector256<double>>(degrees); 1941return VectorMath.ExpDouble<Vector256<double>, Vector256<ulong>>(vector); 1960return VectorMath.ExpSingle<Vector256<float>, Vector256<uint>, Vector512<double>, Vector512<ulong>>(vector); 1964return VectorMath.ExpSingle<Vector256<float>, Vector256<uint>, Vector256<double>, Vector256<ulong>>(vector); 2185return VectorMath.HypotDouble<Vector256<double>, Vector256<ulong>>(x, y); 2204return VectorMath.HypotSingle<Vector256<float>, Vector512<double>>(x, y); 2208return VectorMath.HypotSingle<Vector256<float>, Vector256<double>>(x, y); 2251return VectorMath.IsEvenIntegerSingle<Vector256<float>, Vector256<uint>>(vector.AsSingle()).As<float, T>(); 2255return VectorMath.IsEvenIntegerDouble<Vector256<double>, Vector256<ulong>>(vector.AsDouble()).As<double, T>(); 2374return VectorMath.IsOddIntegerSingle<Vector256<float>, Vector256<uint>>(vector.AsSingle()).As<float, T>(); 2378return VectorMath.IsOddIntegerDouble<Vector256<double>, Vector256<ulong>>(vector.AsDouble()).As<double, T>(); 2474return VectorMath.Lerp<Vector256<double>, double>(x, y, amount); 2492return VectorMath.Lerp<Vector256<float>, float>(x, y, amount); 2677return VectorMath.LogDouble<Vector256<double>, Vector256<long>, Vector256<ulong>>(vector); 2694return VectorMath.LogSingle<Vector256<float>, Vector256<int>, Vector256<uint>>(vector); 2711return VectorMath.Log2Double<Vector256<double>, Vector256<long>, Vector256<ulong>>(vector); 2728return VectorMath.Log2Single<Vector256<float>, Vector256<int>, Vector256<uint>>(vector); 2746return VectorMath.Max<Vector256<T>, T>(left, right); 2764return VectorMath.MaxMagnitude<Vector256<T>, T>(left, right); 2782return VectorMath.MaxMagnitudeNumber<Vector256<T>, T>(left, right); 2818return VectorMath.MaxNumber<Vector256<T>, T>(left, right); 2836return VectorMath.Min<Vector256<T>, T>(left, right); 2854return VectorMath.MinMagnitude<Vector256<T>, T>(left, right); 2872return VectorMath.MinMagnitudeNumber<Vector256<T>, T>(left, right); 2908return VectorMath.MinNumber<Vector256<T>, T>(left, right); 3163return VectorMath.RadiansToDegreesDouble<Vector256<double>, Vector256<ulong>>(radians); 3183return VectorMath.RadiansToDegreesSingle<Vector256<float>, Vector512<double>>(radians); 3187return VectorMath.RadiansToDegreesSingle<Vector256<float>, Vector256<double>>(radians); 3227public static Vector256<double> Round(Vector256<double> vector, MidpointRounding mode) => VectorMath.RoundDouble(vector, mode); 3231public static Vector256<float> Round(Vector256<float> vector, MidpointRounding mode) => VectorMath.RoundSingle(vector, mode); 3619return VectorMath.SinDouble<Vector256<double>, Vector256<long>>(vector); 3638return VectorMath.SinSingle<Vector256<float>, Vector256<int>, Vector512<double>, Vector512<long>>(vector); 3642return VectorMath.SinSingle<Vector256<float>, Vector256<int>, Vector256<double>, Vector256<long>>(vector); 3660return VectorMath.SinCosDouble<Vector256<double>, Vector256<long>>(vector); 3682return VectorMath.SinCosSingle<Vector256<float>, Vector256<int>, Vector512<double>, Vector512<long>>(vector); 3686return VectorMath.SinCosSingle<Vector256<float>, Vector256<int>, Vector256<double>, Vector256<long>>(vector);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (37)
648return VectorMath.CopySign<Vector512<T>, T>(value, sign); 726return VectorMath.AsinDouble<Vector512<double>, Vector512<ulong>>(vector); 743return VectorMath.AsinSingle<Vector512<float>, Vector512<int>, Vector512<double>, Vector512<long>>(vector); 760return VectorMath.CosDouble<Vector512<double>, Vector512<long>>(vector); 777return VectorMath.CosSingle<Vector512<float>, Vector512<int>, Vector512<double>, Vector512<long>>(vector); 1888return VectorMath.DegreesToRadiansDouble<Vector512<double>, Vector512<ulong>>(degrees); 1906return VectorMath.DegreesToRadiansSingle<Vector512<float>, Vector512<double>>(degrees); 1990return VectorMath.ExpDouble<Vector512<double>, Vector512<ulong>>(vector); 2007return VectorMath.ExpSingle<Vector512<float>, Vector512<uint>, Vector512<double>, Vector512<ulong>>(vector); 2227return VectorMath.HypotDouble<Vector512<double>, Vector512<ulong>>(x, y); 2244return VectorMath.HypotSingle<Vector512<float>, Vector512<double>>(x, y); 2286return VectorMath.IsEvenIntegerSingle<Vector512<float>, Vector512<uint>>(vector.AsSingle()).As<float, T>(); 2290return VectorMath.IsEvenIntegerDouble<Vector512<double>, Vector512<ulong>>(vector.AsDouble()).As<double, T>(); 2409return VectorMath.IsOddIntegerSingle<Vector512<float>, Vector512<uint>>(vector.AsSingle()).As<float, T>(); 2413return VectorMath.IsOddIntegerDouble<Vector512<double>, Vector512<ulong>>(vector.AsDouble()).As<double, T>(); 2509return VectorMath.Lerp<Vector512<double>, double>(x, y, amount); 2527return VectorMath.Lerp<Vector512<float>, float>(x, y, amount); 2712return VectorMath.LogDouble<Vector512<double>, Vector512<long>, Vector512<ulong>>(vector); 2729return VectorMath.LogSingle<Vector512<float>, Vector512<int>, Vector512<uint>>(vector); 2746return VectorMath.Log2Double<Vector512<double>, Vector512<long>, Vector512<ulong>>(vector); 2763return VectorMath.Log2Single<Vector512<float>, Vector512<int>, Vector512<uint>>(vector); 2781return VectorMath.Max<Vector512<T>, T>(left, right); 2799return VectorMath.MaxMagnitude<Vector512<T>, T>(left, right); 2817return VectorMath.MaxMagnitudeNumber<Vector512<T>, T>(left, right); 2853return VectorMath.MaxNumber<Vector512<T>, T>(left, right); 2871return VectorMath.Min<Vector512<T>, T>(left, right); 2889return VectorMath.MinMagnitude<Vector512<T>, T>(left, right); 2907return VectorMath.MinMagnitudeNumber<Vector512<T>, T>(left, right); 2943return VectorMath.MinNumber<Vector512<T>, T>(left, right); 3197return VectorMath.RadiansToDegreesDouble<Vector512<double>, Vector512<ulong>>(radians); 3215return VectorMath.RadiansToDegreesSingle<Vector512<float>, Vector512<double>>(radians); 3254public static Vector512<double> Round(Vector512<double> vector, MidpointRounding mode) => VectorMath.RoundDouble(vector, mode); 3258public static Vector512<float> Round(Vector512<float> vector, MidpointRounding mode) => VectorMath.RoundSingle(vector, mode); 3646return VectorMath.SinDouble<Vector512<double>, Vector512<long>>(vector); 3663return VectorMath.SinSingle<Vector512<float>, Vector512<int>, Vector512<double>, Vector512<long>>(vector); 3680return VectorMath.SinCosDouble<Vector512<double>, Vector512<long>>(vector); 3700return VectorMath.SinCosSingle<Vector512<float>, Vector512<int>, Vector512<double>, Vector512<long>>(vector);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (45)
680return VectorMath.CopySign<Vector64<T>, T>(value, sign); 783return VectorMath.AsinDouble<Vector64<double>, Vector64<ulong>>(vector); 802return VectorMath.AsinSingle<Vector64<float>, Vector64<int>, Vector128<double>, Vector128<long>>(vector); 806return VectorMath.AsinSingle<Vector64<float>, Vector64<int>, Vector64<double>, Vector64<long>>(vector); 823return VectorMath.CosDouble<Vector64<double>, Vector64<long>>(vector); 841return VectorMath.CosSingle<Vector64<float>, Vector64<int>, Vector128<double>, Vector128<long>>(vector); 845return VectorMath.CosSingle<Vector64<float>, Vector64<int>, Vector64<double>, Vector64<long>>(vector); 1682return VectorMath.DegreesToRadiansDouble<Vector64<double>, Vector64<ulong>>(degrees); 1701return VectorMath.DegreesToRadiansSingle<Vector64<float>, Vector128<double>>(degrees); 1705return VectorMath.DegreesToRadiansSingle<Vector64<float>, Vector64<double>>(degrees); 1813return VectorMath.ExpDouble<Vector64<double>, Vector64<ulong>>(vector); 1831return VectorMath.ExpSingle<Vector64<float>, Vector64<uint>, Vector128<double>, Vector128<ulong>>(vector); 1835return VectorMath.ExpSingle<Vector64<float>, Vector64<uint>, Vector64<double>, Vector64<ulong>>(vector); 2121return VectorMath.HypotDouble<Vector64<double>, Vector64<ulong>>(x, y); 2140return VectorMath.HypotSingle<Vector64<float>, Vector128<double>>(x, y); 2144return VectorMath.HypotSingle<Vector64<float>, Vector64<double>>(x, y); 2193return VectorMath.IsEvenIntegerSingle<Vector64<float>, Vector64<uint>>(vector.AsSingle()).As<float, T>(); 2197return VectorMath.IsEvenIntegerDouble<Vector64<double>, Vector64<ulong>>(vector.AsDouble()).As<double, T>(); 2316return VectorMath.IsOddIntegerSingle<Vector64<float>, Vector64<uint>>(vector.AsSingle()).As<float, T>(); 2320return VectorMath.IsOddIntegerDouble<Vector64<double>, Vector64<ulong>>(vector.AsDouble()).As<double, T>(); 2443return VectorMath.Lerp<Vector64<double>, double>(x, y, amount); 2462return VectorMath.Lerp<Vector64<float>, float>(x, y, amount); 2687return VectorMath.LogDouble<Vector64<double>, Vector64<long>, Vector64<ulong>>(vector); 2703return VectorMath.LogSingle<Vector64<float>, Vector64<int>, Vector64<uint>>(vector); 2733return VectorMath.Log2Double<Vector64<double>, Vector64<long>, Vector64<ulong>>(vector); 2749return VectorMath.Log2Single<Vector64<float>, Vector64<int>, Vector64<uint>>(vector); 2764return VectorMath.Max<Vector64<T>, T>(left, right); 2787return VectorMath.MaxMagnitude<Vector64<T>, T>(left, right); 2810return VectorMath.MaxMagnitudeNumber<Vector64<T>, T>(left, right); 2856return VectorMath.MaxNumber<Vector64<T>, T>(left, right); 2879return VectorMath.Min<Vector64<T>, T>(left, right); 2902return VectorMath.MinMagnitude<Vector64<T>, T>(left, right); 2925return VectorMath.MinMagnitudeNumber<Vector64<T>, T>(left, right); 2971return VectorMath.MinNumber<Vector64<T>, T>(left, right); 3287return VectorMath.RadiansToDegreesDouble<Vector64<double>, Vector64<ulong>>(radians); 3306return VectorMath.RadiansToDegreesSingle<Vector64<float>, Vector128<double>>(radians); 3310return VectorMath.RadiansToDegreesSingle<Vector64<float>, Vector64<double>>(radians); 3355public static Vector64<double> Round(Vector64<double> vector, MidpointRounding mode) => VectorMath.RoundDouble(vector, mode); 3362public static Vector64<float> Round(Vector64<float> vector, MidpointRounding mode) => VectorMath.RoundSingle(vector, mode); 3761return VectorMath.SinDouble<Vector64<double>, Vector64<long>>(vector); 3779return VectorMath.SinSingle<Vector64<float>, Vector64<int>, Vector128<double>, Vector128<long>>(vector); 3783return VectorMath.SinSingle<Vector64<float>, Vector64<int>, Vector64<double>, Vector64<long>>(vector); 3816return VectorMath.SinCosDouble<Vector64<double>, Vector64<long>>(vector); 3834return VectorMath.SinCosSingle<Vector64<float>, Vector64<int>, Vector128<double>, Vector128<long>>(vector); 3838return VectorMath.SinCosSingle<Vector64<float>, Vector64<int>, Vector64<double>, Vector64<long>>(vector);