Class Scalars
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
Methods of scalar (标量的方法).
public static class Scalars
- Inheritance
-
Scalars
- Inherited Members
Methods
- GetBitsMask128(int, int)
Get 128-bit's bits mask (取得128位的掩码).
- GetBitsMask64(int, int)
Get 64-bit's bits mask (取得64位的掩码).
- GetBitsMask<T>(int, int)
Get bits mask (取得位掩码).
- GetBy128Bits<T>(ExInt128)
Converts a 128-bits integer to the target type value (将128位整数位转换为目标类型值).
- GetByBits<T>(long)
Converts a bits to the target type value (将整数位转换为目标类型值).
- GetByDouble<T>(double)
Converts a double to the target type value (将 double 转换为目标类型值).
- GetFixedByDoubleUseOne<T>(double, double)
Converts a double to the fixed point number of the target type (将 double 转换为目标类型的定点数). Use the
fixedOne
parameter (使用fixedOne
参数).
- GetFixedByDouble<T>(double, int)
Converts a double to the fixed point number of the target type (将 double 转换为目标类型的定点数).
- GetInt128BitsFrom<T>(T)
Get a ExInt128 bits from target type value (从目标类型取得 ExInt128 类型的128位值).
- GetInt64BitsFrom<T>(T)
Get a long bits from target type value (从目标类型取得 long 类型的64位值).
- IsLeast128<T>()
Does it have at least 128 bits (它是否至少有128位).
- LimitShiftAmountByBitSize(int, int)
Limit shift amount to a valid range by
bitSize
(根据bitSize
将位移量限制在有效范围).
- LimitShiftAmount<T>(int)
Limit shift amount to a valid range (将位移量限制在有效范围).
- OnesComplement<T>(T)
Computes the ones-complement(~) (按位取反运算).