Table of Contents

Class AbstractVectors<T>

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Common constants of any Vector types (任何向量类型的公用常量).

public abstract class AbstractVectors<T> where T : struct

Type Parameters

T

The vector element type. T can be any primitive numeric type.

Inheritance
AbstractVectors<T>
Derived
Inherited Members

Properties

ElementAllBitsSet

(Element) All bit is 1 (所有位都是1的值).

ElementBitSize

(Element) Bit size (位大小).

ElementBitSizeMask

(Element) Bit size mask (位大小掩码).

ElementByteSize

(Element) byte size (字节大小).

ElementE

(Element) Represents the natural logarithmic base, specified by the constant, e (表示自然对数的底,它由常数 e 指定).

ElementEpsilon

(Element) Represents the smallest positive value that is greater than zero (表示大于零的最小正值). When the type is an integer, the value is 1 (当类型为整数时,该值为1).

ElementExponentBias

(Element) Exponent bias (指数偏移值). When the type is an integer, the value is 0.

ElementExponentBits

(Element) Exponent bit size (指数位数). When the type is an integer, the value is 0.

ElementExponentMask

(Element) Exponent mask (指数掩码).

ElementExponentShift

(Element) Exponent shift bit (指数位移).

ElementFixedOne

(Element) 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).

ElementFixedOneDouble

(Element) The double of the fixed point number with 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).

ElementFixedShift

(Element) Binary shift of fixed point number (定点数的位移). When the type is an integer, the value is 'ElementBitSize/2'; Otherwise it's 0 (当类型为整数时,它的值为 <xref href="Zyl.VectorTraits.AbstractVectors%601.ElementBitSize" data-throw-if-not-resolved="false"></xref>/2; 其他情况下为 0).

ElementMantissaBits

(Element) Mantissa bit size (尾数位数).

ElementMantissaMask

(Element) Mantissa mast (尾数掩码)k.

ElementMantissaShift

(Element) Mantissa shift bit (尾数位移).

ElementMaskBits1

(Element) 1 bits mask (1位掩码).

ElementMaskBits16

(Element) 16 bits mask (16位掩码).

ElementMaskBits2

(Element) 2 bits mask (2位掩码).

ElementMaskBits32

(Element) 32 bits mask (32位掩码).

ElementMaskBits4

(Element) 4 bits mask (4位掩码).

ElementMaskBits8

(Element) 8 bits mask (8位掩码).

ElementMaxValue

(Element) Represents the largest possible value (表示最大可能值).

ElementMinValue

(Element) Represents the smallest possible value (表示最小可能值).

ElementNaN

(Element) Represents not a number (NaN) (表示“非数(NaN)”的值). When the type is an integer, the value is 0 (当类型为整数时,该值为0).

ElementNegativeInfinity

(Element) Represents negative infinity (表示负无穷). When the type is an integer, the value is 0 (当类型为整数时,该值为0).

ElementNonExponentMask

(Element) Non-exponent mask (非指数掩码).

ElementNonMantissaMask

(Element) Non-mantissa mask (非尾数掩码).

ElementNonSignMask

(Element) Non-sign mask (非符号掩码).

ElementNormOne

(Element) 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).

ElementPi

(Element) Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π (表示圆的周长与其直径的比值,由常数 π 指定).

ElementPositiveInfinity

(Element) Represents positive infinity (表示正无穷). When the type is an integer, the value is 0 (当类型为整数时,该值为0).

ElementSignBits

(Element) Sign bit size (符号位数). When the type is an unsigned number, the value is 0.

ElementSignMask

(Element) Sign mask (符号掩码).

ElementSignShift

(Element) Sign shift bit (符号位移).

ElementTau

(Element) Represents the number of radians in one turn, specified by the constant, τ (表示转一圈的弧度数,由常量 τ 指定).

ElementV0

(Element) Value 0 (0的值).

ElementV1

(Element) Value 1 .

ElementV2

(Element) Value 2 .

ElementV3

(Element) Value 3 .

ElementV4

(Element) Value 4 .

ElementV5

(Element) Value 5 .

ElementV6

(Element) Value 6 .

ElementV7

(Element) Value 7 .

ElementV8

(Element) Value 8 .

ElementVMaxByte

(Element) Value 255 (byte.MaxValue).

ElementVMaxInt16

(Element) Value 32767 (short.MaxValue) .

ElementVMaxInt32

(Element) Value 2147483647 (int.MaxValue) .

ElementVMaxSByte

(Element) Value 127 (sbyte.MaxValue).

ElementVMaxUInt16

(Element) Value 65535 (ushort.MaxValue) .

ElementVMaxUInt32

(Element) Value 4294967295 (uint.MaxValue) .

ElementVMinInt16

(Element) Value -32768 (short.MinValue) .

ElementVMinInt32

(Element) Value -2147483648 (int.MinValue) .

ElementVMinSByte

(Element) Value -128 (sbyte.MinValue).

ElementVReciprocalMaxByte

Reciprocal value: 1/255 (byte.MaxValue). When the type is an integer, it is a fixed point number using the ElementFixedShift convention (当类型为整数时, 是使用 ElementFixedShift 约定的定点数).

ElementVReciprocalMaxInt16

Reciprocal value: 1/32767 (short.MaxValue). When the type is an integer, it is a fixed point number using the ElementFixedShift convention (当类型为整数时, 是使用 ElementFixedShift 约定的定点数).

ElementVReciprocalMaxInt32

Reciprocal value: 1/2147483647 (int.MaxValue). When the type is an integer, it is a fixed point number using the ElementFixedShift convention (当类型为整数时, 是使用 ElementFixedShift 约定的定点数).

ElementVReciprocalMaxSByte

Reciprocal value: 1/127 (sbyte.MaxValue). When the type is an integer, it is a fixed point number using the ElementFixedShift convention (当类型为整数时, 是使用 ElementFixedShift 约定的定点数).

ElementVReciprocalMaxUInt16

Reciprocal value: 1/65535 (ushort.MaxValue). When the type is an integer, it is a fixed point number using the ElementFixedShift convention (当类型为整数时, 是使用 ElementFixedShift 约定的定点数).

ElementVReciprocalMaxUInt32

Reciprocal value: 1/4294967295 (uint.MaxValue). When the type is an integer, it is a fixed point number using the ElementFixedShift convention (当类型为整数时, 是使用 ElementFixedShift 约定的定点数).

ElementV_1

(Element) Value -1 . When the type is unsigned integer, the value is a signed cast value (当类型为无符号整型时,值为有符号强制转换值). Example: '(byte)(-1)=255' .

ElementV_2

(Element) Value -2 .

ElementV_3

(Element) Value -3 .

ElementV_4

(Element) Value -4 .

ElementV_5

(Element) Value -5 .

ElementV_6

(Element) Value -6 .

ElementV_7

(Element) Value -7 .

ElementV_8

(Element) Value -8 .

ElementZero

(Element) Zero (0).