48 references to AsDouble
System.Numerics.Tensors (46)
System\Numerics\Tensors\netcore\TensorPrimitives.Cbrt.cs (1)
68
return ExpOperator<double>.Invoke(LogOperator<double>.Invoke(x.
AsDouble
()) / Vector512.Create(3d)).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Ceiling.cs (1)
66
return Vector512.Ceiling(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (2)
84
if (typeof(TTo) == typeof(long)) return Vector512.ConvertToInt64(x.
AsDouble
()).As<long, TTo>();
85
if (typeof(TTo) == typeof(ulong)) return Vector512.ConvertToUInt64(x.
AsDouble
()).As<ulong, TTo>();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (2)
84
if (typeof(TTo) == typeof(long)) return Vector512.ConvertToInt64Native(x.
AsDouble
()).As<long, TTo>();
85
if (typeof(TTo) == typeof(ulong)) return Vector512.ConvertToUInt64Native(x.
AsDouble
()).As<ulong, TTo>();
System\Numerics\Tensors\netcore\TensorPrimitives.Cos.cs (1)
123
return Vector512.Cos(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (1)
128
Vector512<double> x = t.
AsDouble
();
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
103
return ApplyScalar<CosPiOperator<double>>(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.DegreesToRadians.cs (1)
71
return Vector512.DegreesToRadians(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Exp.cs (1)
97
return Vector512.Exp(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Floor.cs (1)
66
return Vector512.Floor(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.FusedMultiplyAdd.cs (3)
184
return Vector512.FusedMultiplyAdd(x.
AsDouble
(), y.
AsDouble
(), z.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Hypot.cs (2)
75
return Vector512.Hypot(x.
AsDouble
(), y.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (3)
509
if (typeof(T) == typeof(double)) return Avx512F.BlendVariable(left.
AsDouble
(), right.
AsDouble
(), (~mask).
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Lerp.cs (3)
119
return Vector512.Lerp(x.
AsDouble
(), y.
AsDouble
(), amount.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Log.cs (1)
139
return Vector512.Log(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Log2.cs (1)
99
return Vector512.Log2(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAddEstimate.cs (3)
185
return Vector512.MultiplyAddEstimate(x.
AsDouble
(), y.
AsDouble
(), z.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Pow.cs (2)
101
return ExpOperator<double>.Invoke(y.
AsDouble
() * LogOperator<double>.Invoke(x.
AsDouble
())).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.RadiansToDegrees.cs (1)
71
return Vector512.RadiansToDegrees(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Reciprocal.cs (2)
148
if (typeof(T) == typeof(double)) return Avx512F.Reciprocal14(x.
AsDouble
()).As<double, T>();
214
if (typeof(T) == typeof(double)) return Avx512F.ReciprocalSqrt14(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Remainder.cs (1)
88
typeof(T) == typeof(double) ? x - (TruncateOperator<double>.Invoke((x / y).
AsDouble
()).As<double, T>() * y) :
System\Numerics\Tensors\netcore\TensorPrimitives.RootN.cs (1)
70
return ExpOperator<double>.Invoke(LogOperator<double>.Invoke(x.
AsDouble
()) / Vector512.Create((double)_n)).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (3)
222
return Vector512.Round(x.
AsDouble
()).As<double, T>();
289
return TruncateOperator<double>.Invoke(x.
AsDouble
() + CopySignOperator<double>.Invoke(Vector512.Create(0.49999999999999994), x.
AsDouble
())).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Sin.cs (1)
113
return Vector512.Sin(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (1)
120
Vector512<double> x = t.
AsDouble
();
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
103
return ApplyScalar<SinPiOperator<double>>(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (3)
96
return TanOperatorDouble.Invoke(x.
AsDouble
()).As<double, T>();
389
Vector512<double> result = (poly.AsUInt64() ^ (x.AsUInt64() & Vector512.Create(~SignMask))).
AsDouble
();
390
return Vector512.ConditionalSelect(Vector512.Equals(odd, Vector512<ulong>.Zero).
AsDouble
(),
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (1)
120
Vector512<double> x = t.
AsDouble
();
System\Numerics\Tensors\netcore\TensorPrimitives.Truncate.cs (1)
108
return Vector512.Truncate(x.
AsDouble
()).As<double, T>();
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (2)
1994
return VectorMath.IsEvenIntegerDouble<Vector512<double>, Vector512<ulong>>(vector.
AsDouble
()).As<double, T>();
2121
return VectorMath.IsOddIntegerDouble<Vector512<double>, Vector512<ulong>>(vector.
AsDouble
()).As<double, T>();