Instigate Open Source Documentation

instigate::algebra::interface< float > Struct Template Reference

Specialization of the Algebra Interface for type float. More...

#include <interface.hpp>

List of all members.

Static Public Member Functions

static float plus (const float &a, const float &b)
 Add the specified arguments.
static float minus (const float &a, const float &b)
 Subtract the specified arguments.
static float multiply (const float &a, const float &b)
 Multiply the specified arguments.
static float divide (const float &a, const float &b)
 Divide the specified arguments.
static float get_zero ()
 Get the additive identity element.
static float get_one ()
 Get multiplicative identity element.
static float opposite (const float &a)
 Negate the specified argument.
static float inverse (const float &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< float >

Specialization of the Algebra Interface for type float.


Member Function Documentation

static float instigate::algebra::interface< float >::divide ( const float &  a,
const float &  b 
) [inline, static]

Divide the specified arguments.

Parameters:
a - the dividend
b - the divisor
Returns:
The quotient of a and b
static float instigate::algebra::interface< float >::get_one (  )  [inline, static]

Get multiplicative identity element.

Returns:
The multiplicative identity element
static float instigate::algebra::interface< float >::get_zero (  )  [inline, static]

Get the additive identity element.

Returns:
The additive identity element
static float instigate::algebra::interface< float >::inverse ( const float &  a  )  [inline, static]

Inverse the specified argument.

Parameters:
a - the argument to be inversed
Returns:
The inverse value of a

References instigate::algebra::interface< T >::get_one().

static float instigate::algebra::interface< float >::minus ( const float &  a,
const float &  b 
) [inline, static]

Subtract the specified arguments.

Parameters:
a - the minuend
b - the subtrahend
Returns:
The difference of a and b
static float instigate::algebra::interface< float >::multiply ( const float &  a,
const float &  b 
) [inline, static]

Multiply the specified arguments.

Parameters:
a - the first multiplier
b - the second multiplier
Returns:
The product of a and b
static float instigate::algebra::interface< float >::opposite ( const float &  a  )  [inline, static]

Negate the specified argument.

Parameters:
a - the argument to be negated
Returns:
The negated value of a
static float instigate::algebra::interface< float >::plus ( const float &  a,
const float &  b 
) [inline, static]

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:


© Instigate CJSC, Open Source