Table of Contents

Method YSign

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YSign(Vector256<float>)

Determine the sign of each element (判断各个元素的符号). Mnemonic: rt[i] := sign(value[i]).

public static Vector256<int> YSign(Vector256<float> value)

Parameters

value Vector256<float>

The vectors that will be checked (将进行检查的向量).

Returns

Vector256<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(Vector256<double>)

Determine the sign of each element (判断各个元素的符号). Mnemonic: rt[i] := sign(value[i]).

public static Vector256<long> YSign(Vector256<double> value)

Parameters

value Vector256<double>

The vectors that will be checked (将进行检查的向量).

Returns

Vector256<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(Vector256<sbyte>)

Determine the sign of each element (判断各个元素的符号). Mnemonic: rt[i] := sign(value[i]).

[CLSCompliant(false)]
public static Vector256<sbyte> YSign(Vector256<sbyte> value)

Parameters

value Vector256<sbyte>

The vectors that will be checked (将进行检查的向量).

Returns

Vector256<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(Vector256<short>)

Determine the sign of each element (判断各个元素的符号). Mnemonic: rt[i] := sign(value[i]).

public static Vector256<short> YSign(Vector256<short> value)

Parameters

value Vector256<short>

The vectors that will be checked (将进行检查的向量).

Returns

Vector256<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(Vector256<int>)

Determine the sign of each element (判断各个元素的符号). Mnemonic: rt[i] := sign(value[i]).

public static Vector256<int> YSign(Vector256<int> value)

Parameters

value Vector256<int>

The vectors that will be checked (将进行检查的向量).

Returns

Vector256<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(Vector256<long>)

Determine the sign of each element (判断各个元素的符号). Mnemonic: rt[i] := sign(value[i]).

public static Vector256<long> YSign(Vector256<long> value)

Parameters

value Vector256<long>

The vectors that will be checked (将进行检查的向量).

Returns

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