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
-
Scalar | the type of the entries in the matrix. |
|
constexpr Scalar | operator() (Scalar x, Scalar y) const noexcept |
| Call operator for multiplication.
|
|
◆ 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
-
x | the first value. |
y | the 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:
- /Users/jdm/libsemigroups/include/libsemigroups/matrix.hpp