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

Defined in adapters.hpp.

Specialisations of this struct should be stateless trivially default constructible with a call operator of signature void operator()(Point& res, Element const& x, Point const& pt) const (possibly noexcept, inline and/or constexpr also).

The call operator should change res in-place to contain the image of the point pt under the left 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.

Template Parameters
Elementthe type of the elements of a semigroup.
Pointthe type of the points acted on.

The third template parameter exists for SFINAE.

Example
template <>
void operator()(BMat8& res, BMat8 pt, BMat8 x) const noexcept {
res = (x * pt).col_space_basis();
}
};
Fast boolean matrices of dimension up to 8 x 8.
Definition bmat8.hpp:74
Adapter for the value of a left action.
Definition adapters.hpp:350

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