libsemigroups  v3.0.0
C++ library for semigroups and monoids
Loading...
Searching...
No Matches
MinPlusZero< Scalar >
template<typename Scalar>
struct libsemigroups::MinPlusZero< 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 min-plus semiring.

Template Parameters
Scalarthe type of the values in the semiring (must be signed integer type).

Public Member Functions

constexpr Scalar operator() () const noexcept
 Call operator for additive identity.
 

Member Function Documentation

◆ operator()()

template<typename Scalar>
Scalar operator() ( ) const
inlineconstexprnoexcept

This function returns the additive identity in the min-plus semiring.

Returns
The additive identity in the min-plus semiring.
Exceptions
This function is noexcept and is guaranteed never to throw.

The documentation for this struct was generated from the following file: