Specialization of the Algebra Interface for type unsigned short. More...
#include <interface.hpp>
Static Public Member Functions | |
| static unsigned short | plus (const unsigned short &a, unsigned short &b) |
| Add the specified arguments. | |
| static unsigned short | multiply (const unsigned short &a, const unsigned short &b) |
| Multiply the specified arguments. | |
| static unsigned short | get_zero () |
| Get the additive identity element. | |
| static unsigned short | get_one () |
| Get multiplicative identity element. | |
Static Public Attributes | |
| static const bool | is_additive_assocativity = true |
| Check additive associativity of the type. | |
| static const bool | is_multiplicative_assocativity = true |
| Check multiplicative associativity of the type. | |
| static const bool | is_comutativity_addition = true |
| Check commutativity of addition. | |
| static const bool | is_comutativity_multiplication = true |
| Check commutativity of multiplication. | |
| static const bool | is_distributivity = true |
| Check distributivity. | |
Specialization of the Algebra Interface for type unsigned short.
| static unsigned short instigate::algebra::interface< unsigned short >::get_one | ( | ) | [inline, static] |
Get multiplicative identity element.
| static unsigned short instigate::algebra::interface< unsigned short >::get_zero | ( | ) | [inline, static] |
Get the additive identity element.
| static unsigned short instigate::algebra::interface< unsigned short >::multiply | ( | const unsigned short & | a, | |
| const unsigned short & | b | |||
| ) | [inline, static] |
Multiply the specified arguments.
| a | - the first multiplier | |
| b | - the second multiplier |
| static unsigned short instigate::algebra::interface< unsigned short >::plus | ( | const unsigned short & | a, | |
| unsigned short & | b | |||
| ) | [inline, static] |
Add the specified arguments.
| a | - the first addend | |
| b | - the second addend |