Table of Contents

Method YCopySign

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YCopySign(Vector256<float>, Vector256<float>)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值). Mnemonic: rt[i] := copySign(value[i], sign[i]).

Vector256<float> YCopySign(Vector256<float> value, Vector256<float> sign)

Parameters

value Vector256<float>

The value whose magnitude is used in the result (结果中使用的幅度).

sign Vector256<float>

The value whose sign is used in the result (结果中使用符号的值).

Returns

Vector256<float>

Returns a vector where each element is a value based on the magnitude of value and the sign of sign (返回一个向量,其中每个元素是根据 value的幅度和sign的符号而生成的值).

See Also

YCopySign(Vector256<double>, Vector256<double>)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值). Mnemonic: rt[i] := copySign(value[i], sign[i]).

Vector256<double> YCopySign(Vector256<double> value, Vector256<double> sign)

Parameters

value Vector256<double>

The value whose magnitude is used in the result (结果中使用的幅度).

sign Vector256<double>

The value whose sign is used in the result (结果中使用符号的值).

Returns

Vector256<double>

Returns a vector where each element is a value based on the magnitude of value and the sign of sign (返回一个向量,其中每个元素是根据 value的幅度和sign的符号而生成的值).

See Also

YCopySign(Vector256<sbyte>, Vector256<sbyte>)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值). Mnemonic: rt[i] := copySign(value[i], sign[i]).

Vector256<sbyte> YCopySign(Vector256<sbyte> value, Vector256<sbyte> sign)

Parameters

value Vector256<sbyte>

The value whose magnitude is used in the result (结果中使用的幅度).

sign Vector256<sbyte>

The value whose sign is used in the result (结果中使用符号的值).

Returns

Vector256<sbyte>

Returns a vector where each element is a value based on the magnitude of value and the sign of sign (返回一个向量,其中每个元素是根据 value的幅度和sign的符号而生成的值).

See Also

YCopySign(Vector256<short>, Vector256<short>)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值). Mnemonic: rt[i] := copySign(value[i], sign[i]).

Vector256<short> YCopySign(Vector256<short> value, Vector256<short> sign)

Parameters

value Vector256<short>

The value whose magnitude is used in the result (结果中使用的幅度).

sign Vector256<short>

The value whose sign is used in the result (结果中使用符号的值).

Returns

Vector256<short>

Returns a vector where each element is a value based on the magnitude of value and the sign of sign (返回一个向量,其中每个元素是根据 value的幅度和sign的符号而生成的值).

See Also

YCopySign(Vector256<int>, Vector256<int>)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值). Mnemonic: rt[i] := copySign(value[i], sign[i]).

Vector256<int> YCopySign(Vector256<int> value, Vector256<int> sign)

Parameters

value Vector256<int>

The value whose magnitude is used in the result (结果中使用的幅度).

sign Vector256<int>

The value whose sign is used in the result (结果中使用符号的值).

Returns

Vector256<int>

Returns a vector where each element is a value based on the magnitude of value and the sign of sign (返回一个向量,其中每个元素是根据 value的幅度和sign的符号而生成的值).

See Also

YCopySign(Vector256<long>, Vector256<long>)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值). Mnemonic: rt[i] := copySign(value[i], sign[i]).

Vector256<long> YCopySign(Vector256<long> value, Vector256<long> sign)

Parameters

value Vector256<long>

The value whose magnitude is used in the result (结果中使用的幅度).

sign Vector256<long>

The value whose sign is used in the result (结果中使用符号的值).

Returns

Vector256<long>

Returns a vector where each element is a value based on the magnitude of value and the sign of sign (返回一个向量,其中每个元素是根据 value的幅度和sign的符号而生成的值).

See Also