template<typename Scalar>
struct libsemigroups::MaxPlusZero< Scalar >
Defined in matrix.hpp.
This is a stateless struct with a single call operator of signature: Scalar operator()() const noexcept which returns \(-\infty\); representing the additive identity of the max-plus semiring.
- Template Parameters
-
| Scalar | the type of the values in the semiring (must be signed integer type). |
|
| constexpr Scalar | operator() () const noexcept |
| | Call operator for additive identity.
|
| |
◆ operator()()
template<typename Scalar>
| Scalar operator() |
( |
| ) |
const |
|
inlineconstexprnoexcept |
This function returns the additive identity in the max-plus semiring.
- Returns
- The additive identity in the max-plus semiring.
- Exceptions
- This function is
noexcept and is guaranteed never to throw.
The documentation for this struct was generated from the following file:
- /Users/jdm3/libsemigroups/include/libsemigroups/matrix.hpp