IBit Operations<T> Interface
Represents the contract for operations on an operand type that supports bitwise operations.
Definition
Namespace: Extreme.Mathematics.Generic
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public interface IBitOperations<T> : IGroupOperations<T>,
IComparer<T>, IEqualityComparer<T>
- Implements
- IGroupOperations<T>, IComparer<T>, IEqualityComparer<T>
Type Parameters
- T
- The type of the operands.
Properties
| Max |
Gets the largest possible value of the operand type.
(Inherited from IGroupOperations<T>) |
| Min |
Gets the smallest possible value of the operand type.
(Inherited from IGroupOperations<T>) |
| Zero |
Gets the value of zero for the operand type T.
(Inherited from IGroupOperations<T>) |
Methods
| Abs |
Returns the absolute value of a value.
(Inherited from IGroupOperations<T>) |
| Add |
Adds one value to another.
(Inherited from IGroupOperations<T>) |
| And | Computes a bitwise and of two values. |
| Compare | Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. (Inherited from IComparer<T>) |
| Equals | Determines whether the specified objects are equal. (Inherited from IEqualityComparer<T>) |
| Get | Returns a hash code for the specified object. (Inherited from IEqualityComparer<T>) |
| Left | Shifts the bits of a value to the left by the specified number of bits. |
| Negate |
Negates a value.
(Inherited from IGroupOperations<T>) |
| Not | Computes the bitwise complement of a value. |
| Or | Computes a bitwise or of two values. |
| Right | Shifts the bits of a value to the right by the specified number of bits. |
| Subtract |
Subtracts one value from another.
(Inherited from IGroupOperations<T>) |
| Xor | Computes a bitwise exclusive or of two values. |
Extension Methods
| Max<T> |
Returns the larger of two numbers.
(Defined by GenericExtensions) |
| Max<T> |
Returns the largest of three numbers.
(Defined by GenericExtensions) |
| Min<T> |
Returns the smaller of two numbers.
(Defined by GenericExtensions) |
| Min<T> |
Returns the smallest of three numbers.
(Defined by GenericExtensions) |