Method YCopySign
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YCopySign(Vector128<float>, Vector128<float>)
Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).
Mnemonic: rt[i] := copySign(value[i], sign[i])
.
Vector128<float> YCopySign(Vector128<float> value, Vector128<float> sign)
Parameters
value
Vector128<float>The value whose magnitude is used in the result (结果中使用的幅度).
sign
Vector128<float>The value whose sign is used in the result (结果中使用符号的值).
Returns
- Vector128<float>
Returns a vector where each element is a value based on the magnitude of
value
and the sign ofsign
(返回一个向量,其中每个元素是根据 value的幅度和sign的符号而生成的值).
- See Also
YCopySign(Vector128<double>, Vector128<double>)
Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).
Mnemonic: rt[i] := copySign(value[i], sign[i])
.
Vector128<double> YCopySign(Vector128<double> value, Vector128<double> sign)
Parameters
value
Vector128<double>The value whose magnitude is used in the result (结果中使用的幅度).
sign
Vector128<double>The value whose sign is used in the result (结果中使用符号的值).
Returns
- Vector128<double>
Returns a vector where each element is a value based on the magnitude of
value
and the sign ofsign
(返回一个向量,其中每个元素是根据 value的幅度和sign的符号而生成的值).
- See Also
YCopySign(Vector128<sbyte>, Vector128<sbyte>)
Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).
Mnemonic: rt[i] := copySign(value[i], sign[i])
.
Vector128<sbyte> YCopySign(Vector128<sbyte> value, Vector128<sbyte> sign)
Parameters
value
Vector128<sbyte>The value whose magnitude is used in the result (结果中使用的幅度).
sign
Vector128<sbyte>The value whose sign is used in the result (结果中使用符号的值).
Returns
- Vector128<sbyte>
Returns a vector where each element is a value based on the magnitude of
value
and the sign ofsign
(返回一个向量,其中每个元素是根据 value的幅度和sign的符号而生成的值).
- See Also
YCopySign(Vector128<short>, Vector128<short>)
Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).
Mnemonic: rt[i] := copySign(value[i], sign[i])
.
Vector128<short> YCopySign(Vector128<short> value, Vector128<short> sign)
Parameters
value
Vector128<short>The value whose magnitude is used in the result (结果中使用的幅度).
sign
Vector128<short>The value whose sign is used in the result (结果中使用符号的值).
Returns
- Vector128<short>
Returns a vector where each element is a value based on the magnitude of
value
and the sign ofsign
(返回一个向量,其中每个元素是根据 value的幅度和sign的符号而生成的值).
- See Also
YCopySign(Vector128<int>, Vector128<int>)
Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).
Mnemonic: rt[i] := copySign(value[i], sign[i])
.
Vector128<int> YCopySign(Vector128<int> value, Vector128<int> sign)
Parameters
value
Vector128<int>The value whose magnitude is used in the result (结果中使用的幅度).
sign
Vector128<int>The value whose sign is used in the result (结果中使用符号的值).
Returns
- Vector128<int>
Returns a vector where each element is a value based on the magnitude of
value
and the sign ofsign
(返回一个向量,其中每个元素是根据 value的幅度和sign的符号而生成的值).
- See Also
YCopySign(Vector128<long>, Vector128<long>)
Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).
Mnemonic: rt[i] := copySign(value[i], sign[i])
.
Vector128<long> YCopySign(Vector128<long> value, Vector128<long> sign)
Parameters
value
Vector128<long>The value whose magnitude is used in the result (结果中使用的幅度).
sign
Vector128<long>The value whose sign is used in the result (结果中使用符号的值).
Returns
- Vector128<long>
Returns a vector where each element is a value based on the magnitude of
value
and the sign ofsign
(返回一个向量,其中每个元素是根据 value的幅度和sign的符号而生成的值).
- See Also