template<typename Scalar>
struct libsemigroups::IntegerPlus< Scalar >
Defined in matrix.hpp
.
This is a stateless struct with a single call operator of signature: Scalar operator()(Scalar x, Scalar y) const noexcept
which returns the usual sum x + y
of x
and y
; representing addition in the integer semiring.
- Template Parameters
-
Scalar | the type of the entries in the matrix. |
|
constexpr Scalar | operator() (Scalar x, Scalar y) const noexcept |
| Call operator for addition.
|
|
◆ operator()()
template<typename Scalar>
Scalar operator() |
( |
Scalar | x, |
|
|
Scalar | y ) const |
|
inlineconstexprnoexcept |
This function returns the sum of its arguments in the ring of integers.
- Parameters
-
x | the first value. |
y | the second value. |
- Returns
- The sum of
x
and y
in the boolean semiring.
- Exceptions
- This function is
noexcept
and is guaranteed never to throw.
The documentation for this struct was generated from the following file:
- /Users/jdm/libsemigroups/include/libsemigroups/matrix.hpp