instigate::algebra::interface< long double > Struct Template Reference
Specialization of the Algebra Interface for type long double.
More...
#include <interface.hpp>
List of all members.
Static Public Member Functions |
| static long double | plus (const long double &a, const long double &b) |
| | Add the specified arguments.
|
| static long double | minus (const long double &a, const long double &b) |
| | Subtract the specified arguments.
|
| static long double | multiply (const long double &a, const long double &b) |
| | Multiply the specified arguments.
|
| static long double | divide (const long double &a, const long double &b) |
| | Divide the specified arguments.
|
| static long double | get_zero () |
| | Get the additive identity element.
|
| static long double | get_one () |
| | Get multiplicative identity element.
|
| static long double | opposite (const long double &a) |
| | Negate the specified argument.
|
| static long double | inverse (const long double &a) |
| | Inverse the specified argument.
|
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.
|
Detailed Description
template<>
struct instigate::algebra::interface< long double >
Specialization of the Algebra Interface for type long double.
Member Function Documentation
Divide the specified arguments.
- Parameters:
-
| a | - the dividend |
| b | - the divisor |
- Returns:
- The quotient of a and b
Get multiplicative identity element.
- Returns:
- The identity element
Get the additive identity element.
- Returns:
- The additive identity element
Subtract the specified arguments.
- Parameters:
-
| a | - the minuend |
| b | - the subtrahend |
- Returns:
- The difference of a and b
Multiply the specified arguments.
- Parameters:
-
| a | - the first multiplier |
| b | - the second multiplier |
- Returns:
- The product of a and b
Negate the specified argument.
- Parameters:
-
| a | - the argument to be negated |
- Returns:
- The negated value of a
Add the specified arguments.
- Parameters:
-
| a | - the first addend |
| b | - the second addend |
- Returns:
- The sum of a and b
The documentation for this struct was generated from the following file: