|
DGtal
0.6.devel
|
#include <CCommutativeRing.h>


Public Member Functions | |
| BOOST_CONCEPT_USAGE (CCommutativeRing) | |
Private Attributes | |
| T | a |
| T | b |
| T | c |
Aim: Defines the mathematical concept equivalent to a unitary commutative ring.
Description of concept 'CCommutativeRing'
boost::EqualityComparable<T>, boost::LessThanComparable<T>
| Name | Expression | Type requirements | Return type | Precondition | Semantics | Postcondition | Complexity |
| Construction from basic integer type | X( i ) | X represents the integer i | |||||
| Addition | x + y | X | addition of two numbers | ||||
| Subtraction | x - y | X | subtraction of two numbers | ||||
| Multiplication | x - y | X | subtraction of two numbers | ||||
| Opposite operator | - x | X | defines the opposite of x ( x + -x = 0) | ||||
| X should have a 0 (neutral element for addition) | X( 0 ) | X | the value 0 | ||||
| X should have a 1 (neutral element for multiplication) | X ( 1 ) | X | the value 1 |
DGtal::int32_t, DGtal::int64_t, DGtal::int8_t, float, double, long double, DGtal::BigInteger
| T | the type that should be a model of commutative ring. |
Definition at line 171 of file CCommutativeRing.h.
|
inline |
The 0 and 1 neutral elements should be tested.
Definition at line 177 of file CCommutativeRing.h.
References DGtal::ConceptUtils::sameType().
|
private |
Reimplemented in DGtal::CEuclideanRing< T >.
Definition at line 192 of file CCommutativeRing.h.
|
private |
Reimplemented in DGtal::CEuclideanRing< T >.
Definition at line 192 of file CCommutativeRing.h.
|
private |
Reimplemented in DGtal::CEuclideanRing< T >.
Definition at line 192 of file CCommutativeRing.h.
1.8.1.1