Method YSign
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YSign(Vector128<float>)
Determine the sign of each element (判断各个元素的符号).
Mnemonic: rt[i] := sign(value[i])
.
Vector128<int> YSign(Vector128<float> value)
Parameters
Returns
- Vector128<int>
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, and -1 if the value is negative (一个向量,其元素取决于value的对应元素的符号情况: 值为正数时返回1, 值为0时返回0, 值为负数时返回-1).
- See Also
YSign(Vector128<double>)
Determine the sign of each element (判断各个元素的符号).
Mnemonic: rt[i] := sign(value[i])
.
Vector128<long> YSign(Vector128<double> value)
Parameters
Returns
- Vector128<long>
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, and -1 if the value is negative (一个向量,其元素取决于value的对应元素的符号情况: 值为正数时返回1, 值为0时返回0, 值为负数时返回-1).
- See Also
YSign(Vector128<sbyte>)
Determine the sign of each element (判断各个元素的符号).
Mnemonic: rt[i] := sign(value[i])
.
Vector128<sbyte> YSign(Vector128<sbyte> value)
Parameters
Returns
- Vector128<sbyte>
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, and -1 if the value is negative (一个向量,其元素取决于value的对应元素的符号情况: 值为正数时返回1, 值为0时返回0, 值为负数时返回-1).
- See Also
YSign(Vector128<short>)
Determine the sign of each element (判断各个元素的符号).
Mnemonic: rt[i] := sign(value[i])
.
Vector128<short> YSign(Vector128<short> value)
Parameters
Returns
- Vector128<short>
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, and -1 if the value is negative (一个向量,其元素取决于value的对应元素的符号情况: 值为正数时返回1, 值为0时返回0, 值为负数时返回-1).
- See Also
YSign(Vector128<int>)
Determine the sign of each element (判断各个元素的符号).
Mnemonic: rt[i] := sign(value[i])
.
Vector128<int> YSign(Vector128<int> value)
Parameters
Returns
- Vector128<int>
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, and -1 if the value is negative (一个向量,其元素取决于value的对应元素的符号情况: 值为正数时返回1, 值为0时返回0, 值为负数时返回-1).
- See Also
YSign(Vector128<long>)
Determine the sign of each element (判断各个元素的符号).
Mnemonic: rt[i] := sign(value[i])
.
Vector128<long> YSign(Vector128<long> value)
Parameters
Returns
- Vector128<long>
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, and -1 if the value is negative (一个向量,其元素取决于value的对应元素的符号情况: 值为正数时返回1, 值为0时返回0, 值为负数时返回-1).
- See Also