Table of Contents

Method YIsNegative

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YIsNegative(Vector128<float>)

Determines if a element represents a negative number or negative zero (确定元素是否为负数或负零). Mnemonic: rt[i] := to_mask(isNegative(value[i])) = to_mask((value[i]<0) || isNegativeZero(value[i])).

public static Vector128<int> YIsNegative(Vector128<float> value)

Parameters

value Vector128<float>

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

Returns

Vector128<int>

A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in value were is negative number or negative zero (一个向量,其元素是全位为1或0,取决于value的对应元素中是否为负数或负零).

See Also

YIsNegative(Vector128<double>)

Determines if a element represents a negative number or negative zero (确定元素是否为负数或负零). Mnemonic: rt[i] := to_mask(isNegative(value[i])) = to_mask((value[i]<0) || isNegativeZero(value[i])).

public static Vector128<long> YIsNegative(Vector128<double> value)

Parameters

value Vector128<double>

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

Returns

Vector128<long>

A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in value were is negative number or negative zero (一个向量,其元素是全位为1或0,取决于value的对应元素中是否为负数或负零).

See Also

YIsNegative(Vector128<sbyte>)

Determines if a element represents a negative number or negative zero (确定元素是否为负数或负零). Mnemonic: rt[i] := to_mask(isNegative(value[i])) = to_mask((value[i]<0) || isNegativeZero(value[i])).

[CLSCompliant(false)]
public static Vector128<sbyte> YIsNegative(Vector128<sbyte> value)

Parameters

value Vector128<sbyte>

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

Returns

Vector128<sbyte>

A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in value were is negative number or negative zero (一个向量,其元素是全位为1或0,取决于value的对应元素中是否为负数或负零).

See Also

YIsNegative(Vector128<short>)

Determines if a element represents a negative number or negative zero (确定元素是否为负数或负零). Mnemonic: rt[i] := to_mask(isNegative(value[i])) = to_mask((value[i]<0) || isNegativeZero(value[i])).

public static Vector128<short> YIsNegative(Vector128<short> value)

Parameters

value Vector128<short>

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

Returns

Vector128<short>

A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in value were is negative number or negative zero (一个向量,其元素是全位为1或0,取决于value的对应元素中是否为负数或负零).

See Also

YIsNegative(Vector128<int>)

Determines if a element represents a negative number or negative zero (确定元素是否为负数或负零). Mnemonic: rt[i] := to_mask(isNegative(value[i])) = to_mask((value[i]<0) || isNegativeZero(value[i])).

public static Vector128<int> YIsNegative(Vector128<int> value)

Parameters

value Vector128<int>

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

Returns

Vector128<int>

A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in value were is negative number or negative zero (一个向量,其元素是全位为1或0,取决于value的对应元素中是否为负数或负零).

See Also

YIsNegative(Vector128<long>)

Determines if a element represents a negative number or negative zero (确定元素是否为负数或负零). Mnemonic: rt[i] := to_mask(isNegative(value[i])) = to_mask((value[i]<0) || isNegativeZero(value[i])).

public static Vector128<long> YIsNegative(Vector128<long> value)

Parameters

value Vector128<long>

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

Returns

Vector128<long>

A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in value were is negative number or negative zero (一个向量,其元素是全位为1或0,取决于value的对应元素中是否为负数或负零).

See Also