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