53 references to AsSingle
System.Numerics.Tensors (51)
System\Numerics\Tensors\netcore\TensorPrimitives.Cbrt.cs (1)
63
return ExpOperator<float>.Invoke(LogOperator<float>.Invoke(x.
AsSingle
()) / Vector512.Create(3f)).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Ceiling.cs (1)
68
return Vector512.Ceiling(x.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (5)
543
Vector512<uint> absoluteValue = (bitValueInProcess.
AsSingle
() - maskedExponentLowerBound.
AsSingle
()).AsUInt32();
546
return (absoluteValue | sign).
AsSingle
();
726
Vector512<uint> exponentOffset0 = Vector512.Max(value, Vector512.Create(MinExp).
AsSingle
()).AsUInt32();
735
value += exponentOffset0.
AsSingle
();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (2)
81
Vector512.ConvertToInt32(x.
AsSingle
()).As<int, TTo>() :
82
Vector512.ConvertToUInt32(x.
AsSingle
()).As<uint, TTo>();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (2)
80
Vector512.ConvertToInt32Native(x.
AsSingle
()).As<int, TTo>() :
81
Vector512.ConvertToUInt32Native(x.
AsSingle
()).As<uint, TTo>();
System\Numerics\Tensors\netcore\TensorPrimitives.Cos.cs (1)
136
return Vector512.Cos(x.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (1)
126
Vector512<float> x = t.
AsSingle
();
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
102
return ApplyScalar<CosPiOperator<float>>(x.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.DegreesToRadians.cs (1)
83
return Vector512.DegreesToRadians(x.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Exp.cs (1)
109
return Vector512.Exp(x.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Floor.cs (1)
68
return Vector512.Floor(x.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.FusedMultiplyAdd.cs (3)
212
return Vector512.FusedMultiplyAdd(x.
AsSingle
(), y.
AsSingle
(), z.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Hypot.cs (2)
87
return Vector512.Hypot(x.
AsSingle
(), y.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (3)
508
if (typeof(T) == typeof(float)) return Avx512F.BlendVariable(left.
AsSingle
(), right.
AsSingle
(), (~mask).
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Lerp.cs (3)
147
return Vector512.Lerp(x.
AsSingle
(), y.
AsSingle
(), amount.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Log.cs (1)
165
return Vector512.Log(x.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Log2.cs (1)
111
return Vector512.Log2(x.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAddEstimate.cs (3)
212
return Vector512.MultiplyAddEstimate(x.
AsSingle
(), y.
AsSingle
(), z.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Pow.cs (2)
96
return ExpOperator<float>.Invoke(y.
AsSingle
() * LogOperator<float>.Invoke(x.
AsSingle
())).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.RadiansToDegrees.cs (1)
76
return Vector512.RadiansToDegrees(x.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Reciprocal.cs (2)
175
if (typeof(T) == typeof(float)) return Avx512F.Reciprocal14(x.
AsSingle
()).As<float, T>();
241
if (typeof(T) == typeof(float)) return Avx512F.ReciprocalSqrt14(x.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Remainder.cs (1)
108
typeof(T) == typeof(float) ? x - (TruncateOperator<float>.Invoke((x / y).
AsSingle
()).As<float, T>() * y) :
System\Numerics\Tensors\netcore\TensorPrimitives.RootN.cs (1)
65
return ExpOperator<float>.Invoke(LogOperator<float>.Invoke(x.
AsSingle
()) / Vector512.Create((float)_n)).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (3)
239
return Vector512.Round(x.
AsSingle
()).As<float, T>();
296
return TruncateOperator<float>.Invoke(x.
AsSingle
() + CopySignOperator<float>.Invoke(Vector512.Create(0.49999997f), x.
AsSingle
())).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Sin.cs (1)
125
return Vector512.Sin(x.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (1)
116
Vector512<float> x = t.
AsSingle
();
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
102
return ApplyScalar<SinPiOperator<float>>(x.
AsSingle
()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (3)
98
return TanOperatorSingle.Invoke(x.
AsSingle
()).As<float, T>();
227
Vector512<float> result = (poly.AsUInt32() ^ (x.AsUInt32() & Vector512.Create(~SignMask))).
AsSingle
();
228
return Vector512.ConditionalSelect(Vector512.Equals(odd, Vector512<uint>.Zero).
AsSingle
(),
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (1)
118
Vector512<float> x = t.
AsSingle
();
System\Numerics\Tensors\netcore\TensorPrimitives.Truncate.cs (1)
120
return Vector512.Truncate(x.
AsSingle
()).As<float, T>();
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (2)
2001
return VectorMath.IsEvenIntegerSingle<Vector512<float>, Vector512<uint>>(vector.
AsSingle
()).As<float, T>();
2128
return VectorMath.IsOddIntegerSingle<Vector512<float>, Vector512<uint>>(vector.
AsSingle
()).As<float, T>();