|
HPCombi
High Performance Combinatorics in C++ using vector instructions v1.0.3
|
Algebraic monoid structure used by default for type T by the pow function and prod function. More...
#include <power.hpp>
Static Public Member Functions | |
| static const T | one () |
| The one of type T. | |
| static const T | prod (T a, T b) |
| the product of two elements of type T | |
Algebraic monoid structure used by default for type T by the pow function and prod function.
A Monoid structure is required to define two static members
By default for any type T, one is constructed from the literal 1 and prod calls the operator *. One can change these default by specializing the template for some specific type T.
|
inlinestatic |
The one of type T.
|
inlinestatic |
the product of two elements of type T
| a | the first element to be multiplied |
| b | the second element to be multiplied |