libsemigroups  v3.0.0
C++ library for semigroups and monoids
Loading...
Searching...
No Matches
OnTuples< Element, Point, Container >
template<typename Element, typename Point, typename Container = std::vector<Point>>
struct libsemigroups::OnTuples< Element, Point, Container >

Defined in adapters.hpp.

This struct applies ImageRightAction<Element, Point> to every value in a container of type Container.

Template Parameters
Elementthe type of the elements of the semigroup.
Pointthe type of the points acted on.
Containera container of Point.

Public Member Functions

void operator() (Container &res, Container const &pt, Element const &x) const
 Calculate right actions of each element in a container.
 

Member Function Documentation

◆ operator()()

template<typename Element, typename Point, typename Container = std::vector<Point>>
void operator() ( Container & res,
Container const & pt,
Element const & x ) const
inline

This call operator changes res in-place to contain the image of the container pt of points of type Point, under the induced right action of the element x. The purpose of the 1st parameter is to avoid repeated allocations of memory to hold temporary points that are discarded soon after they are created.

Parameters
resa container of Point (such as std::vector or std::array) to hold the result.
pta container of Point.
xan element of type Element.
Complexity
pt.size() times the complexity of ImageRightAction<Element, Point>.
See also
OnSets and ImageRightAction.

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