libsemigroups  v3.0.0
C++ library for semigroups and monoids
Loading...
Searching...
No Matches
IntegerProd< Scalar >
template<typename Scalar>
struct libsemigroups::IntegerProd< 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 product x * y of x and y; representing multiplication 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 multiplication.
 

Member Function Documentation

◆ operator()()

template<typename Scalar>
Scalar operator() ( Scalar x,
Scalar y ) const
inlineconstexprnoexcept

This function returns the product of its arguments in the ring of integers.

Parameters
xthe first value.
ythe second value.
Returns
The product of x and y in the ring of integers.
Exceptions
This function is noexcept and is guaranteed never to throw.

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