8 references to TruncateOperator
System.Numerics.Tensors (8)
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (7)
145
InvokeSpanIntoSpan(x, new MultiplyRoundDivideOperator<T,
TruncateOperator
<T>>(power10), destination);
253
return
TruncateOperator
<float>.Invoke(x.AsSingle() + CopySignOperator<float>.Invoke(Vector128.Create(0.49999997f), x.AsSingle())).As<float, T>();
263
return
TruncateOperator
<double>.Invoke(x.AsDouble() + CopySignOperator<double>.Invoke(Vector128.Create(0.49999999999999994), x.AsDouble())).As<double, T>();
271
return
TruncateOperator
<float>.Invoke(x.AsSingle() + CopySignOperator<float>.Invoke(Vector256.Create(0.49999997f), x.AsSingle())).As<float, T>();
276
return
TruncateOperator
<double>.Invoke(x.AsDouble() + CopySignOperator<double>.Invoke(Vector256.Create(0.49999999999999994), x.AsDouble())).As<double, T>();
284
return
TruncateOperator
<float>.Invoke(x.AsSingle() + CopySignOperator<float>.Invoke(Vector512.Create(0.49999997f), x.AsSingle())).As<float, 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.Truncate.cs (1)
25
InvokeSpanIntoSpan<T,
TruncateOperator
<T>>(x, destination);