libsemigroups  v3.0.0
C++ library for semigroups and monoids
Loading...
Searching...
No Matches
IntegerPlus< Scalar >
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
Scalarthe type of the entries in the matrix.

Public Member Functions

constexpr Scalar operator() (Scalar x, Scalar y) const noexcept
 Call operator for addition.
 

Member Function Documentation

◆ 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
xthe first value.
ythe 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: