Method YSign_Basic
- Namespace
- Zyl.VectorTraits.Impl.AVector
- Assembly
- VectorTraits.dll
YSign_Basic(Vector<float>)
Determine the sign of each element (判断各个元素的符号).
Mnemonic: rt[i] := sign(value[i])
.
public static Vector<int> YSign_Basic(Vector<float> value)
Parameters
Returns
- Vector<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_Basic(Vector<double>)
Determine the sign of each element (判断各个元素的符号).
Mnemonic: rt[i] := sign(value[i])
.
public static Vector<long> YSign_Basic(Vector<double> value)
Parameters
Returns
- Vector<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_Basic(Vector<sbyte>)
Determine the sign of each element (判断各个元素的符号).
Mnemonic: rt[i] := sign(value[i])
.
[CLSCompliant(false)]
public static Vector<sbyte> YSign_Basic(Vector<sbyte> value)
Parameters
Returns
- Vector<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_Basic(Vector<short>)
Determine the sign of each element (判断各个元素的符号).
Mnemonic: rt[i] := sign(value[i])
.
public static Vector<short> YSign_Basic(Vector<short> value)
Parameters
Returns
- Vector<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_Basic(Vector<int>)
Determine the sign of each element (判断各个元素的符号).
Mnemonic: rt[i] := sign(value[i])
.
public static Vector<int> YSign_Basic(Vector<int> value)
Parameters
Returns
- Vector<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_Basic(Vector<long>)
Determine the sign of each element (判断各个元素的符号).
Mnemonic: rt[i] := sign(value[i])
.
public static Vector<long> YSign_Basic(Vector<long> value)
Parameters
Returns
- Vector<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