Method YRoundToEven
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YRoundToEven(Vector256<float>)
Computes the round to even of each element in a vector (计算向量中每个元素的向偶数舍入). It is also known as rounding half to even
/round to nearest integer
(它也被称作四舍六入五成双
/舍入到最近整数
). See more: ToEven.
Mnemonic: rt[i] := round_to_even(value[i])
.
public static Vector256<float> YRoundToEven(Vector256<float> value)
Parameters
Returns
- Vector256<float>
A vector whose elements are the round to even of the elements in
value
(一个向量,其元素是value
中各元素的向偶数舍入).
- See Also
YRoundToEven(Vector256<double>)
Computes the round to even of each element in a vector (计算向量中每个元素的向偶数舍入). It is also known as rounding half to even
/round to nearest integer
(它也被称作四舍六入五成双
/舍入到最近整数
). See more: ToEven.
Mnemonic: rt[i] := round_to_even(value[i])
.
public static Vector256<double> YRoundToEven(Vector256<double> value)
Parameters
Returns
- Vector256<double>
A vector whose elements are the round to even of the elements in
value
(一个向量,其元素是value
中各元素的向偶数舍入).
- See Also