Class Vector64s<T>
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
Constants of Vector64<T> .
public abstract class Vector64s<T> : AbstractVectors<T> where T : struct
Type Parameters
T
The vector element type (向量中的元素的类型).
- Inheritance
-
Vector64s<T>
- Inherited Members
Fields
- Demo
Demo Value (演示值). It is a value constructed for testing purposes (它是为测试目的而构造的值).
- DemoNaN
NaN Demo Value (NaN演示值). It is a value constructed for testing purposes (它是为测试目的而构造的值).
- DemoNaN2
NaN Demo Value 2 (NaN演示值2). It is a value constructed for testing purposes (它是为测试目的而构造的值).
- E
Represents the natural logarithmic base, specified by the constant, e (表示自然对数的底,它由常数 e 指定).
- Epsilon
Represents the smallest positive value that is greater than zero (表示大于零的最小正值). When the type is an integer, the value is 1 (当类型为整数时,该值为1).
- ExponentMask
Exponent mask (指数掩码).
- FixedOne
The fixed point number of the value 1 (值1的定点数). When the type is an integer, the value is'Pow(2, ElementFixedShift)'; Otherwise it's 1 (当类型为整数时,它的值为
Pow(2, <xref href="Zyl.VectorTraits.AbstractVectors%601.ElementFixedShift" data-throw-if-not-resolved="false"></xref>)
; 其他情况下为 1).
- IndexMask
The mask of the index (索引的掩码). All the elements have a value of
Count-1
.
- IndexMaskEach128
The mask of the index on Each128 (Each128上索引的掩码). All the elements have a value of
(16/sizeof(T))-1
.
- IndexX2Mask
The mask of the index2 (索引2时的掩码). All the elements have a value of
Count*2-1
.
- IndexX4Mask
The mask of the index4 (索引4时的掩码). All the elements have a value of
Count*4-1
.
- InterlacedSign
Interlaced sign number (交错的符号数值). e.g. 1, -1, 1, -1, 1, -1 ...
- InterlacedSignNegative
Interlaced sign number starting with a negative number (负数开头的交错的符号数值). e.g. -1, 1, -1, 1, -1, 1 ...
- MantissaMask
Mantissa mask (尾数掩码).
- MaskBitPosSerial
Serial bit pos mask (顺序位偏移的掩码). The element whose index exceeds the number of bits has a value of 0(索引超过位数的元素值为0). e.g. 1, 2, 4, 8, 0x10 ...
- MaskBitPosSerialRotate
Serial bit pos rotate mask (顺序位偏移的旋转掩码). e.g. 1, 2, 4, 8, 0x10, ... 1, 2, 4, 8, 0x10, ...
- MaskBitsSerial
Serial bits mask (顺序位集的掩码). The element whose index exceeds the number of bits has a value of all bit set 1(索引超过位数的元素值为所有位都是1的值). e.g. 1, 3, 7, 0xF, 0x1F ...
- MaskBitsSerialRotate
Serial bits rotate mask (顺序位集的旋转掩码). e.g. 1, 3, 7, 0xF, 0x1F ...
- MaxValue
Represents the largest possible value (表示最大可能值).
- MinValue
Represents the smallest possible value (表示最小可能值).
- NaN
Represents not a number (NaN) (表示“非数(NaN)”的值). When the type is an integer, the value is 0 (当类型为整数时,该值为0).
- NegativeInfinity
Represents negative infinity (表示负无穷). When the type is an integer, the value is 0 (当类型为整数时,该值为0).
- NonExponentMask
Non-exponent mask (非指数掩码).
- NonMantissaMask
Non-mantissa mask (非尾数掩码).
- NonSignMask
Non-sign mask (非符号掩码).
- NormOne
Normalized number of value 1 (值1的归一化数). When the type is an integer, the value is'ElementMaxValue'; Otherwise it's 1 (当类型为整数时,它的值为
<xref href="Zyl.VectorTraits.AbstractVectors%601.ElementMaxValue" data-throw-if-not-resolved="false"></xref>
; 其他情况下为 1).
- Pi
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π (表示圆的周长与其直径的比值,由常数 π 指定).
- PositiveInfinity
Represents positive infinity (表示正无穷). When the type is an integer, the value is 0 (当类型为整数时,该值为0).
- Serial
Serial Value (顺序值). e.g. 0, 1, 2, 3 ...
- SerialDesc
Serial Value descend (顺序值降序). e.g. (Count-1), (Count-2), ... 2, 1, 0
- SerialNegative
Negative serial Value (负数顺序值). e.g. 0, -1, -2, -3 ...
- SignMask
Sign mask (符号掩码).
- Tau
Represents the number of radians in one turn, specified by the constant, τ (表示转一圈的弧度数,由常量 τ 指定).
- V1
Value 1 .
- V2
Value 2 .
- V3
Value 3 .
- V4
Value 4 .
- V5
Value 5 .
- V6
Value 6 .
- V7
Value 7 .
- V8
Value 8 .
- VMaxByte
Value 255 (byte.MaxValue).
- VMaxInt16
Value 32767 (short.MaxValue) .
- VMaxInt32
Value 2147483647 (int.MaxValue) .
- VMaxSByte
Value 127 (sbyte.MaxValue).
- VMaxUInt16
Value 65535 (ushort.MaxValue) .
- VMaxUInt32
Value 4294967295 (uint.MaxValue) .
- VMinInt16
Value -32768 (short.MinValue) .
- VMinInt32
Value -2147483648 (int.MinValue) .
- VMinSByte
Value -128 (sbyte.MinValue).
- VReciprocalMaxByte
Reciprocal value: 1/255 (byte.MaxValue). When the type is an integer, it is a fixed point number using the ElementFixedShift convention (当类型为整数时, 是使用 ElementFixedShift 约定的定点数).
- VReciprocalMaxInt16
Reciprocal value: 1/32767 (short.MaxValue). When the type is an integer, it is a fixed point number using the ElementFixedShift convention (当类型为整数时, 是使用 ElementFixedShift 约定的定点数).
- VReciprocalMaxInt32
Reciprocal value: 1/2147483647 (int.MaxValue). When the type is an integer, it is a fixed point number using the ElementFixedShift convention (当类型为整数时, 是使用 ElementFixedShift 约定的定点数).
- VReciprocalMaxSByte
Reciprocal value: 1/127 (sbyte.MaxValue). When the type is an integer, it is a fixed point number using the ElementFixedShift convention (当类型为整数时, 是使用 ElementFixedShift 约定的定点数).
- VReciprocalMaxUInt16
Reciprocal value: 1/65535 (ushort.MaxValue). When the type is an integer, it is a fixed point number using the ElementFixedShift convention (当类型为整数时, 是使用 ElementFixedShift 约定的定点数).
- VReciprocalMaxUInt32
Reciprocal value: 1/4294967295 (uint.MaxValue). When the type is an integer, it is a fixed point number using the ElementFixedShift convention (当类型为整数时, 是使用 ElementFixedShift 约定的定点数).
- V_1
Value -1 . When the type is unsigned integer, the value is a signed cast value (当类型为无符号整型时,值为有符号强制转换值). Example: '(byte)(-1)=255' .
- V_2
Value -2 .
- V_3
Value -3 .
- V_4
Value -4 .
- V_5
Value -5 .
- V_6
Value -6 .
- V_7
Value -7 .
- V_8
Value -8 .
- XyAddress0Mask
Xy - Address 0 mask. For a 2-element group, select the mask of the address 0th element (对于2个元素的组,选择地址为第0个元素的掩码).
- XyAddress0NormOne
Xy - Address 0 is normalized number of value 1 (地址0为 值1的归一化数).
- XyAddress1Mask
Xy - Address 0 mask. For a 2-element group, select the mask of the address 1st element (对于2个元素的组,选择地址为第1个元素的掩码).
- XyAddress1NormOne
Xy - Address 1 is normalized number of value 1 (地址1为 值1的归一化数).
- XyXMask
Xy - X mask. For a 2-element group, select the mask of the position 0th element (对于2个元素的组,选择位置为第0个元素的掩码).
- XyXNormOne
Xy - X is normalized number of value 1 (X为 值1的归一化数).
- XyYMask
Xy - Y mask. For a 2-element group, select the mask of the position 1st element (对于2个元素的组,选择位置为第1个元素的掩码).
- XyYNormOne
Xy - Y is normalized number of value 1 (Y为 值1的归一化数).
- XyzwAddress0Mask
Xyzw - Address 0 mask. For a 4-element group, select the mask of the address 0th element (对于4个元素的组,选择地址为第0个元素的掩码).
- XyzwAddress0NormOne
Xyzw - Address 0 is normalized number of value 1 (地址0为 值1的归一化数).
- XyzwAddress1Mask
Xyzw - Address 1 mask. For a 4-element group, select the mask of the address 0th element (对于4个元素的组,选择地址为第1个元素的掩码).
- XyzwAddress1NormOne
Xyzw - Address 1 is normalized number of value 1 (地址1为 值1的归一化数).
- XyzwAddress2Mask
Xyzw - Address 2 mask. For a 4-element group, select the mask of the address 0th element (对于4个元素的组,选择地址为第2个元素的掩码).
- XyzwAddress2NormOne
Xyzw - Address 2 is normalized number of value 1 (地址2为 值1的归一化数).
- XyzwAddress3Mask
Xyzw - Address 3 mask. For a 4-element group, select the mask of the address 0th element (对于4个元素的组,选择地址为第3个元素的掩码).
- XyzwAddress3NormOne
Xyzw - Address 3 is normalized number of value 1 (地址3为 值1的归一化数).
- XyzwWMask
Xyzw - W mask. For a 4-element group, select the mask of the position 3th element (对于4个元素的组,选择位置为第3个元素的掩码).
- XyzwWNormOne
Xyzw - W is normalized number of value 1 (W为 值1的归一化数).
- XyzwXMask
Xyzw - X mask. For a 4-element group, select the mask of the position 0th element (对于4个元素的组,选择位置为第0个元素的掩码).
- XyzwXNormOne
Xyzw - X is normalized number of value 1 (X为 值1的归一化数).
- XyzwYMask
Xyzw - Y mask. For a 4-element group, select the mask of the position 1th element (对于4个元素的组,选择位置为第1个元素的掩码).
- XyzwYNormOne
Xyzw - Y is normalized number of value 1 (Y为 值1的归一化数).
- XyzwZMask
Xyzw - Z mask. For a 4-element group, select the mask of the position 2th element (对于4个元素的组,选择位置为第2个元素的掩码).
- XyzwZNormOne
Xyzw - Z is normalized number of value 1 (Z为 值1的归一化数).
Properties
- AllBitsSet
All bit is 1 (所有位都是1的值).
- Count
Returns the number of elements stored in the vector (返回存储在向量中的元素数量). It supports ExType (它支持扩展类型).
- MaskBits1
1 bits mask (1位掩码).
- MaskBits16
16 bits mask (16位掩码).
- MaskBits2
2 bits mask (2位掩码).
- MaskBits32
32 bits mask (32位掩码).
- MaskBits4
4 bits mask (4位掩码).
- MaskBits8
8 bits mask (8位掩码).
- V0
Value 0 (0的值).
- Zero
Zero (0).
Methods
- GetMaskBitPos(int)
Get bit pos mask by index (根据索引获取位偏移掩码). The equivalent of
Vector64s.Create(Scalars.GetByBits<T>(1L << index))
.
- GetMaskBitPosSpan()
Get bit pos mask span (获取位偏移掩码的跨度). Tip: You can use As<TFrom, TTo>(ref TFrom) convert its item to Vector64<T> type (提示: 可以用 As<TFrom, TTo>(ref TFrom) 将其中条目转为 Vector64<T> 类型).
- GetMaskBits(int)
Get bits mask by index (根据索引获取位集掩码). The equivalent of
Vector64s.Create(Scalars.GetBitsMask<T>(0, index))
.
- GetMaskBitsSpan()
Get bits mask span (获取位集掩码的跨度). Tip: You can use As<TFrom, TTo>(ref TFrom) convert its item to Vector64<T> type (提示: 可以用 As<TFrom, TTo>(ref TFrom) 将其中条目转为 Vector64<T> 类型).