DGtal 1.3.0
|
Aim: Defines the mathematical concept equivalent to a unitary commutative ring. More...
#include <DGtal/kernel/CCommutativeRing.h>
Public Member Functions | |
BOOST_CONCEPT_USAGE (CCommutativeRing) | |
Public Member Functions inherited from DGtal::concepts::CSignedNumber< T > | |
BOOST_CONCEPT_USAGE (CSignedNumber) | |
Private Attributes | |
T | a |
T | b |
T | c |
Aim: Defines the mathematical concept equivalent to a unitary commutative ring.
Description of concept 'CCommutativeRing'
Name | Expression | Type requirements | Return type | Precondition | Semantics | Postcondition | Complexity |
---|---|---|---|---|---|---|---|
Construction from basic integer type | X( i ) | X represents the integer i | |||||
Should have a 0 | X(0) | Neutral element for addition | |||||
Should have a 1 | X(1) | Neutral element for multiplication | |||||
Addition | x + y | X | addition of two numbers | ||||
Substraction | x - y | X | substraction of two numbers | ||||
Multiplication | x * y | X | multiplication of two numbers | ||||
Addition | x + y | X | addition of two numbers | ||||
Opposite operator | - x | X | opposite of a number |
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 100 of file CCommutativeRing.h.
|
inline |
The 0 and 1 neutral elements should be tested.
Definition at line 105 of file CCommutativeRing.h.
References DGtal::concepts::ConceptUtils::sameType().
|
private |
Definition at line 120 of file CCommutativeRing.h.
|
private |
Definition at line 120 of file CCommutativeRing.h.
|
private |
Definition at line 120 of file CCommutativeRing.h.