template<typename T>
struct DGtal::concepts::CCommutativeRing< T >
Aim: Defines the mathematical concept equivalent to a unitary commutative ring.
Description of concept 'CCommutativeRing'
Refinement of
Associated types :
Notation
Definitions
Valid expressions and semantics
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 | | |
Invariants
Models
DGtal::int32_t, DGtal::int64_t, DGtal::int8_t, float, double, long double, DGtal::BigInteger
Notes
- Template Parameters
-
T | the type that should be a model of commutative ring. |
Definition at line 100 of file CCommutativeRing.h.