ILGPU
0.9.0
|
A half precision floating point value with 16 bit precision. More...
Public Member Functions | |
readonly bool | Equals (Half other) |
Returns true if the given half is equal to the current half. More... | |
readonly int | CompareTo (Half other) |
Compares this half value to the given half. More... | |
readonly override bool | Equals (object obj) |
Returns true if the given object is equal to the current half. More... | |
readonly override int | GetHashCode () |
Returns the hash code of this half. More... | |
readonly override string | ToString () |
Returns the string representation of this half. More... | |
Static Public Member Functions | |
static Half | Abs (Half half) |
Returns the absolute value of the given half value. More... | |
static bool | IsNaN (Half half) |
Returns true if the given half value represents a NaN value. More... | |
static bool | IsZero (Half half) |
Returns true if the given half value represents 0. More... | |
static bool | IsPositiveInfinity (Half half) |
Returns true if the given half value represents +infinity. More... | |
static bool | IsNegativeInfinity (Half half) |
Returns true if the given half value represents -infinity. More... | |
static bool | IsInfinity (Half half) |
Returns true if the given half value represents infinity. More... | |
static Half | operator- (Half halfValue) |
Negates the given half value. More... | |
static Half | operator+ (Half first, Half second) |
Adds two half values. More... | |
static Half | operator- (Half first, Half second) |
Subtracts two half values. More... | |
static Half | operator* (Half first, Half second) |
Multiplies two half values. More... | |
static Half | operator/ (Half first, Half second) |
Divides two half values. More... | |
static bool | operator== (Half first, Half second) |
Returns true if the first and second half represent the same value. More... | |
static bool | operator!= (Half first, Half second) |
Returns true if the first and second half represent not the same value. More... | |
static bool | operator< (Half first, Half second) |
Returns true if the first half is smaller than the second half. More... | |
static bool | operator<= (Half first, Half second) |
Returns true if the first half is smaller than or equal to the half index. More... | |
static bool | operator> (Half first, Half second) |
Returns true if the first half is greater than the second half. More... | |
static bool | operator>= (Half first, Half second) |
Returns true if the first half is greater than or equal to the second half. More... | |
static implicit | operator float (Half halfValue) |
Implicitly converts a half to an float. More... | |
static implicit | operator double (Half halfValue) |
Implicitly converts a half to an double. More... | |
static | operator Half (float floatValue) |
Explicitly converts a float to a half. More... | |
static | operator Half (double doubleValue) |
Explicitly converts a double to a half. More... | |
static | operator sbyte (Half halfValue) |
Implicitly converts a half to type Int8. More... | |
static | operator Half (sbyte sbyteValue) |
Explicitly converts an instance of type Int8 to a half. More... | |
static | operator short (Half halfValue) |
Implicitly converts a half to type Int16. More... | |
static | operator Half (short shortValue) |
Explicitly converts an instance of type Int16 to a half. More... | |
static | operator int (Half halfValue) |
Implicitly converts a half to type Int32. More... | |
static | operator Half (int intValue) |
Explicitly converts an instance of type Int32 to a half. More... | |
static | operator long (Half halfValue) |
Implicitly converts a half to type Int64. More... | |
static | operator Half (long longValue) |
Explicitly converts an instance of type Int64 to a half. More... | |
static | operator byte (Half halfValue) |
Implicitly converts a half to type UInt8. More... | |
static | operator Half (byte byteValue) |
Explicitly converts an instance of type UInt8 to a half. More... | |
static | operator ushort (Half halfValue) |
Implicitly converts a half to type UInt16. More... | |
static | operator Half (ushort ushortValue) |
Explicitly converts an instance of type UInt16 to a half. More... | |
static | operator uint (Half halfValue) |
Implicitly converts a half to type UInt32. More... | |
static | operator Half (uint uintValue) |
Explicitly converts an instance of type UInt32 to a half. More... | |
static | operator ulong (Half halfValue) |
Implicitly converts a half to type UInt64. More... | |
static | operator Half (ulong ulongValue) |
Explicitly converts an instance of type UInt64 to a half. More... | |
Static Public Attributes | |
static readonly Half | Epsilon = new Half(0x1) |
Represents the smallest positive Half value that is greater than zero. More... | |
static readonly Half | MaxValue |
Represents the largest possible Half value. More... | |
static readonly Half | MinValue |
Represents the smallest possible Half value. More... | |
static readonly Half | NaN = new Half(0xFC01) |
Represents not a number (NaN). More... | |
static readonly Half | PositiveInfinity |
Represents positive infinity. More... | |
static readonly Half | NegativeInfinity |
Represents negative infinity. More... | |
static readonly Half | Zero = new Half(0x0) |
Represents a positive zero Half value. More... | |
static readonly Half | One = new Half(0x1) |
Represents a positive zero Half value. More... | |
A half precision floating point value with 16 bit precision.
Returns the absolute value of the given half value.
half | The half value. |
readonly int ILGPU.Half.CompareTo | ( | Half | other | ) |
Compares this half value to the given half.
other | The other half. |
readonly bool ILGPU.Half.Equals | ( | Half | other | ) |
Returns true if the given half is equal to the current half.
other | The other half. |
readonly override bool ILGPU.Half.Equals | ( | object | obj | ) |
Returns true if the given object is equal to the current half.
obj | The other object. |
readonly override int ILGPU.Half.GetHashCode | ( | ) |
Returns the hash code of this half.
|
static |
Returns true if the given half value represents infinity.
half | The half value. |
|
static |
Returns true if the given half value represents a NaN value.
half | The half value. |
|
static |
Returns true if the given half value represents -infinity.
half | The half value. |
|
static |
Returns true if the given half value represents +infinity.
half | The half value. |
|
static |
Returns true if the given half value represents 0.
half | The half value. |
|
explicitstatic |
Implicitly converts a half to type UInt8.
halfValue | The half to convert. |
|
static |
Implicitly converts a half to an double.
halfValue | The half to convert. |
|
static |
Implicitly converts a half to an float.
halfValue | The half to convert. |
|
explicitstatic |
Explicitly converts an instance of type Int8 to a half.
sbyteValue | The value to convert. |
|
explicitstatic |
Explicitly converts an instance of type Int16 to a half.
shortValue | The value to convert. |
|
explicitstatic |
Explicitly converts an instance of type Int32 to a half.
intValue | The value to convert. |
|
explicitstatic |
Explicitly converts an instance of type Int64 to a half.
longValue | The value to convert. |
|
explicitstatic |
Explicitly converts an instance of type UInt8 to a half.
byteValue | The value to convert. |
|
explicitstatic |
Explicitly converts an instance of type UInt16 to a half.
ushortValue | The value to convert. |
|
explicitstatic |
Explicitly converts an instance of type UInt32 to a half.
uintValue | The value to convert. |
|
explicitstatic |
Explicitly converts an instance of type UInt64 to a half.
ulongValue | The value to convert. |
|
explicitstatic |
Explicitly converts a float to a half.
floatValue | The float to convert. |
|
explicitstatic |
Explicitly converts a double to a half.
doubleValue | The double to convert. |
|
explicitstatic |
Implicitly converts a half to type Int32.
halfValue | The half to convert. |
|
explicitstatic |
Implicitly converts a half to type Int64.
halfValue | The half to convert. |
|
explicitstatic |
Implicitly converts a half to type Int8.
halfValue | The half to convert. |
|
explicitstatic |
Implicitly converts a half to type Int16.
halfValue | The half to convert. |
|
explicitstatic |
Implicitly converts a half to type UInt32.
halfValue | The half to convert. |
|
explicitstatic |
Implicitly converts a half to type UInt64.
halfValue | The half to convert. |
|
explicitstatic |
Implicitly converts a half to type UInt16.
halfValue | The half to convert. |
Returns true if the first and second half represent not the same value.
first | The first value. |
second | The second value. |
Multiplies two half values.
first | The first half. |
second | The second half. |
Adds two half values.
first | The first half. |
second | The second half. |
Negates the given half value.
halfValue | The half value to negate. |
Subtracts two half values.
first | The first half. |
second | The second half. |
Divides two half values.
first | The first half. |
second | The second half. |
Returns true if the first half is smaller than the second half.
first | The first half. |
second | The second half. |
Returns true if the first half is smaller than or equal to the half index.
first | The first half. |
second | The second half. |
Returns true if the first and second half represent the same value.
first | The first value. |
second | The second value. |
Returns true if the first half is greater than the second half.
first | The first half. |
second | The second half. |
Returns true if the first half is greater than or equal to the second half.
first | The first index. |
second | The second index. |
readonly override string ILGPU.Half.ToString | ( | ) |
Returns the string representation of this half.
Represents the smallest positive Half value that is greater than zero.
|
static |
Represents the largest possible Half value.
|
static |
Represents the smallest possible Half value.
|
static |
Represents negative infinity.
|
static |
Represents positive infinity.