Table of Contents

Method YSignFloat

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YSignFloat(Vector256<float>)

Determine the sign of each element and returns a floating point number (判断各个元素的符号并返回浮点数). Mnemonic: rt[i] := signFloat(value[i]).

Vector256<float> YSignFloat(Vector256<float> value)

Parameters

value Vector256<float>

The vectors that will be checked (将进行检查的向量).

Returns

Vector256<float>

A vector whose elements depend on the sign of the corresponding element of value: Returns 1 if the value is positive, 0 if the value is zero, -1 if the value is negative, and NaN if the value is NaN (一个向量,其元素取决于value的对应元素的符号情况: 值为正数时返回1, 值为0时返回0, 值为负数时返回-1, 值为NaN时返回NaN).

See Also

YSignFloat(Vector256<double>)

Determine the sign of each element and returns a floating point number (判断各个元素的符号并返回浮点数). Mnemonic: rt[i] := signFloat(value[i]).

Vector256<double> YSignFloat(Vector256<double> value)

Parameters

value Vector256<double>

The vectors that will be checked (将进行检查的向量).

Returns

Vector256<double>

A vector whose elements depend on the sign of the corresponding element of value: Returns 1 if the value is positive, 0 if the value is zero, -1 if the value is negative, and NaN if the value is NaN (一个向量,其元素取决于value的对应元素的符号情况: 值为正数时返回1, 值为0时返回0, 值为负数时返回-1, 值为NaN时返回NaN).

See Also