Method YIsPositive
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YIsPositive(Vector<float>)
Determines if a element represents zero or a positive number (确定元素是否为零或正数).
Mnemonic: rt[i] := to_mask(isNegative(value[i])) = to_mask((value[i]<0) || isNegativeZero(value[i]))
.
public static Vector<int> YIsPositive(Vector<float> value)
Parameters
Returns
- Vector<int>
A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in
value
were is zero or a positive number (一个向量,其元素是全位为1或0,取决于value
的对应元素中是否为零或正数).
- See Also
YIsPositive(Vector<double>)
Determines if a element represents zero or a positive number (确定元素是否为零或正数).
Mnemonic: rt[i] := to_mask(isNegative(value[i])) = to_mask((value[i]<0) || isNegativeZero(value[i]))
.
public static Vector<long> YIsPositive(Vector<double> value)
Parameters
Returns
- Vector<long>
A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in
value
were is zero or a positive number (一个向量,其元素是全位为1或0,取决于value
的对应元素中是否为零或正数).
- See Also
YIsPositive(Vector<sbyte>)
Determines if a element represents zero or a positive number (确定元素是否为零或正数).
Mnemonic: rt[i] := to_mask(isNegative(value[i])) = to_mask((value[i]<0) || isNegativeZero(value[i]))
.
[CLSCompliant(false)]
public static Vector<sbyte> YIsPositive(Vector<sbyte> value)
Parameters
Returns
- Vector<sbyte>
A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in
value
were is zero or a positive number (一个向量,其元素是全位为1或0,取决于value
的对应元素中是否为零或正数).
- See Also
YIsPositive(Vector<short>)
Determines if a element represents zero or a positive number (确定元素是否为零或正数).
Mnemonic: rt[i] := to_mask(isNegative(value[i])) = to_mask((value[i]<0) || isNegativeZero(value[i]))
.
public static Vector<short> YIsPositive(Vector<short> value)
Parameters
Returns
- Vector<short>
A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in
value
were is zero or a positive number (一个向量,其元素是全位为1或0,取决于value
的对应元素中是否为零或正数).
- See Also
YIsPositive(Vector<int>)
Determines if a element represents zero or a positive number (确定元素是否为零或正数).
Mnemonic: rt[i] := to_mask(isNegative(value[i])) = to_mask((value[i]<0) || isNegativeZero(value[i]))
.
public static Vector<int> YIsPositive(Vector<int> value)
Parameters
Returns
- Vector<int>
A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in
value
were is zero or a positive number (一个向量,其元素是全位为1或0,取决于value
的对应元素中是否为零或正数).
- See Also
YIsPositive(Vector<long>)
Determines if a element represents zero or a positive number (确定元素是否为零或正数).
Mnemonic: rt[i] := to_mask(isNegative(value[i])) = to_mask((value[i]<0) || isNegativeZero(value[i]))
.
public static Vector<long> YIsPositive(Vector<long> value)
Parameters
Returns
- Vector<long>
A vector whose elements are all-bits-set or zero, depending on if the corresponding elements in
value
were is zero or a positive number (一个向量,其元素是全位为1或0,取决于value
的对应元素中是否为零或正数).
- See Also