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)
73
return Vector512.Ceiling(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (2)
88
Vector512.ConvertToInt64(x.
AsDouble
()).As<long, TTo>() :
89
Vector512.ConvertToUInt64(x.
AsDouble
()).As<ulong, TTo>();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (2)
87
Vector512.ConvertToInt64Native(x.
AsDouble
()).As<long, TTo>() :
88
Vector512.ConvertToUInt64Native(x.
AsDouble
()).As<ulong, TTo>();
System\Numerics\Tensors\netcore\TensorPrimitives.Cos.cs (1)
131
return Vector512.Cos(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (1)
135
Vector512<double> x = t.
AsDouble
();
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
110
return ApplyScalar<CosPiOperator<double>>(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.DegreesToRadians.cs (1)
78
return Vector512.DegreesToRadians(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Exp.cs (1)
104
return Vector512.Exp(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Floor.cs (1)
73
return Vector512.Floor(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.FusedMultiplyAdd.cs (3)
207
return Vector512.FusedMultiplyAdd(x.
AsDouble
(), y.
AsDouble
(), z.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Hypot.cs (2)
82
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)
142
return Vector512.Lerp(x.
AsDouble
(), y.
AsDouble
(), amount.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Log.cs (1)
160
return Vector512.Log(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Log2.cs (1)
106
return Vector512.Log2(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAddEstimate.cs (3)
208
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)
176
if (typeof(T) == typeof(double)) return Avx512F.Reciprocal14(x.
AsDouble
()).As<double, T>();
242
if (typeof(T) == typeof(double)) return Avx512F.ReciprocalSqrt14(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Remainder.cs (1)
109
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)
234
return Vector512.Round(x.
AsDouble
()).As<double, T>();
301
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)
120
return Vector512.Sin(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (1)
127
Vector512<double> x = t.
AsDouble
();
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
110
return ApplyScalar<SinPiOperator<double>>(x.
AsDouble
()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (3)
103
return TanOperatorDouble.Invoke(x.
AsDouble
()).As<double, T>();
396
Vector512<double> result = (poly.AsUInt64() ^ (x.AsUInt64() & Vector512.Create(~SignMask))).
AsDouble
();
397
return Vector512.ConditionalSelect(Vector512.Equals(odd, Vector512<ulong>.Zero).
AsDouble
(),
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (1)
127
Vector512<double> x = t.
AsDouble
();
System\Numerics\Tensors\netcore\TensorPrimitives.Truncate.cs (1)
115
return Vector512.Truncate(x.
AsDouble
()).As<double, T>();
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (2)
2005
return VectorMath.IsEvenIntegerDouble<Vector512<double>, Vector512<ulong>>(vector.
AsDouble
()).As<double, T>();
2132
return VectorMath.IsOddIntegerDouble<Vector512<double>, Vector512<ulong>>(vector.
AsDouble
()).As<double, T>();