Table of Contents

Method YCopySign

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YCopySign(Vector<float>, Vector<float>)

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

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

Parameters

value Vector<float>

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

sign Vector<float>

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

Returns

Vector<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(Vector<double>, Vector<double>)

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

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

Parameters

value Vector<double>

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

sign Vector<double>

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

Returns

Vector<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(Vector<sbyte>, Vector<sbyte>)

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

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

Parameters

value Vector<sbyte>

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

sign Vector<sbyte>

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

Returns

Vector<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(Vector<short>, Vector<short>)

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

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

Parameters

value Vector<short>

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

sign Vector<short>

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

Returns

Vector<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(Vector<int>, Vector<int>)

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

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

Parameters

value Vector<int>

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

sign Vector<int>

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

Returns

Vector<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(Vector<long>, Vector<long>)

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

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

Parameters

value Vector<long>

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

sign Vector<long>

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

Returns

Vector<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