Table of Contents

Method ConvertToInt64_Range52RoundToEven

Namespace
Zyl.VectorTraits.Impl.AVector
Assembly
VectorTraits.dll

ConvertToInt64_Range52RoundToEven(Vector<double>)

Convert to a vector whose elements are of type Int64, rounding mode is round to even(round to nearest integer) (转换为元素类型是Int64的向量, 舍入模式为舍入到偶数(舍入到最近整数)). Works for inputs in the range: [-2^51, 2^51). Mnemonic: rt[i] := (Int64)(round_to_even(value[i])).

public static Vector<long> ConvertToInt64_Range52RoundToEven(Vector<double> value)

Parameters

value Vector<double>

The source vector (源向量).

Returns

Vector<long>

The converted vector (转换后的向量).

See Also