27#ifndef LIBSEMIGROUPS_TRANSF_HPP_
28#define LIBSEMIGROUPS_TRANSF_HPP_
34#include <initializer_list>
40#include <unordered_map>
41#include <unordered_set>
47#include "adapters.hpp"
49#include "constants.hpp"
51#include "exception.hpp"
53#include "is-transf.hpp"
54#include "is_specialization_of.hpp"
57#include "detail/stl.hpp"
100 template <
typename T>
102 = std::is_base_of_v<detail::PTransfPolymorphicBase, T>;
106 template <
typename T>
109 template <
typename T>
127 template <
typename Scalar,
typename Container>
129 static_assert(std::is_integral_v<Scalar>,
130 "template parameter Scalar must be an integral type");
131 static_assert(std::is_unsigned_v<Scalar>,
132 "template parameter Scalar must be unsigned");
219 template <
typename Iterator>
226 std::is_same_v<OtherScalar, Undefined>
227 || std::is_convertible_v<OtherScalar, point_type>,
228 "the template parameter Iterator must have "
229 "value_type \"Undefined\" or convertible to \"point_type\"!");
230 static_assert(std::is_same_v<std::decay_t<
decltype(*_container.begin())>,
233#pragma GCC diagnostic push
234#if defined(__GNUC__) && !defined(__clang__)
235#pragma GCC diagnostic ignored "-Wstringop-overflow"
237 std::copy(first, last, _container.begin());
238#pragma GCC diagnostic pop
266 template <
typename Sub
class,
typename OtherContainer = Container>
267 [[nodiscard]]
static Subclass
make(OtherContainer&& cont);
289 template <
typename Sub
class,
typename OtherScalar>
328 return _container < that._container;
366 return _container == that._container;
385 return _container < that._container || _container == that._container;
404 return that <= *
this;
423 return !(*
this == that);
441 return _container[i];
459 return _container[i];
515 template <
typename Sub
class>
516 [[nodiscard]] Subclass
operator*(Subclass
const& that)
const;
540 return _container.cbegin();
555 return _container.cend();
560 return _container.begin();
565 return _container.end();
580 return _container.begin();
595 return _container.end();
611 [[nodiscard]]
size_t rank()
const {
613 return (vals.find(
UNDEFINED) == vals.end() ? vals.size()
653 [[nodiscard]]
size_t degree() const noexcept {
654 return _container.size();
670 template <
typename Sub
class>
671 [[nodiscard]]
static Subclass
one(
size_t N) {
673 "the template parameter Subclass must be derived from "
674 "PTransfPolymorphicBase");
676 std::iota(result.begin(), result.end(), 0);
683 resize(_container, N, val);
687 Container _container;
701 template <
typename T>
702 static constexpr bool IsStatic = detail::IsStaticHelper<T>::value;
711 template <
typename T>
712 static constexpr bool IsDynamic = detail::IsDynamicHelper<T>::value;
730 template <
typename Scalar>
816 using base_type::resize;
835 template <
size_t N,
typename Scalar>
914 = std::conditional_t<N == 0, uint32_t, typename SmallestInteger<N>::type>>
919 template <
typename T>
922 template <
typename Scalar>
925 template <
size_t N,
typename Scalar>
928 template <
size_t N,
typename Scalar>
931 template <
typename Scalar>
946 template <
typename T>
947 static constexpr bool IsPTransf = detail::IsPTransfHelper<T>::value;
966 template <
typename Scalar,
typename Container>
1003 = std::conditional_t<N == 0, uint32_t, typename SmallestInteger<N>::type>>
1019 using base_type::degree;
1061 template <
typename T>
1064 template <
size_t N,
typename Scalar>
1065 struct IsTransfHelper<Transf<N, Scalar>> : std::true_type {};
1067 template <
size_t N,
typename Scalar>
1068 struct IsStaticHelper<Transf<N, Scalar>>
1069 : IsStaticHelper<PTransf<N, Scalar>> {};
1071 template <
size_t N,
typename Scalar>
1072 struct IsDynamicHelper<Transf<N, Scalar>>
1073 : IsDynamicHelper<PTransf<N, Scalar>> {};
1087 template <
typename T>
1088 static constexpr bool IsTransf = detail::IsTransfHelper<T>::value;
1109 template <
size_t N,
typename Scalar>
1150 template <
typename Return,
typename OtherContainer>
1151 [[nodiscard]] std::enable_if_t<IsTransf<Return>, Return>
1179 template <
typename Return,
typename OtherScalar>
1180 [[nodiscard]] std::enable_if_t<IsTransf<Return>, Return>
1219 = std::conditional_t<N == 0, uint32_t, typename SmallestInteger<N>::type>>
1235 using base_type::degree;
1236 using base_type::undef;
1262 template <
typename OtherScalar>
1305 template <
typename T>
1308 template <
size_t N,
typename Scalar>
1309 struct IsPPermHelper<PPerm<N, Scalar>> : std::true_type {};
1311 template <
size_t N,
typename Scalar>
1312 struct IsStaticHelper<PPerm<N, Scalar>>
1313 : IsStaticHelper<PTransf<N, Scalar>> {};
1315 template <
size_t N,
typename Scalar>
1316 struct IsDynamicHelper<PPerm<N, Scalar>>
1317 : IsDynamicHelper<PTransf<N, Scalar>> {};
1327 template <
typename T>
1328 static constexpr bool IsPPerm = detail::IsPPermHelper<T>::value;
1350 template <
size_t N,
typename Scalar>
1353 detail::throw_if_duplicates(f.begin(), f.end(),
"image");
1394 template <
typename Return,
typename OtherContainer>
1395 [[nodiscard]] std::enable_if_t<IsPPerm<Return>, Return>
1421 template <
typename Return>
1422 [[nodiscard]] std::enable_if_t<IsPPerm<Return>, Return>
1451 template <
typename Return>
1452 [[nodiscard]] std::enable_if_t<IsPPerm<Return>, Return>
1480 template <
typename Return>
1481 [[nodiscard]] std::enable_if_t<IsPPerm<Return>, Return>
1523 = std::conditional_t<N == 0, uint32_t, typename SmallestInteger<N>::type>>
1539 using base_type::degree;
1543 return base_type::template
one<Perm>(M);
1552 template <
typename T>
1555 template <
size_t N,
typename Scalar>
1556 struct IsPermHelper<Perm<N, Scalar>> : std::true_type {};
1558 template <
size_t N,
typename Scalar>
1559 struct IsStaticHelper<Perm<N, Scalar>>
1560 : IsStaticHelper<PTransf<N, Scalar>> {};
1562 template <
size_t N,
typename Scalar>
1563 struct IsDynamicHelper<Perm<N, Scalar>>
1564 : IsDynamicHelper<PTransf<N, Scalar>> {};
1574 template <
typename T>
1575 static constexpr bool IsPerm = detail::IsPermHelper<T>::value;
1597 template <
size_t N,
typename Scalar>
1600 detail::throw_if_duplicates(f.begin(), f.end(),
"image");
1641 template <
typename Return,
typename OtherContainer>
1642 [[nodiscard]] std::enable_if_t<IsPerm<Return>, Return>
1669 template <
typename Return>
1670 [[nodiscard]] std::enable_if_t<IsPerm<Return>, Return>
1706 template <
typename T,
typename Scalar>
1730 template <
typename T>
1759 template <
typename T,
typename Scalar>
1783 template <
typename T>
1804 template <
typename T>
1805 [[nodiscard]]
auto one(T
const& f)
1806 -> std::enable_if_t<IsDerivedFromPTransf<T>, T> {
1807 return T::one(f.degree());
1827 template <
size_t N,
typename Scalar>
1848 template <
size_t N,
typename Scalar>
1868 template <
size_t N,
typename Scalar>
1893 template <
size_t N,
typename Scalar>
1918 template <
size_t N,
typename Scalar>
1941 template <
size_t N,
typename Scalar>
1948 template <
typename T>
1949 struct Degree<T,
std::enable_if_t<IsDerivedFromPTransf<T>>> {
1950 [[nodiscard]]
constexpr size_t operator()(T
const& x)
const noexcept {
1955 template <
typename T>
1956 struct One<T, std::enable_if_t<IsDerivedFromPTransf<T>>> {
1957 [[nodiscard]] T operator()(T
const& x)
const {
1958 return (*
this)(x.degree());
1961 [[nodiscard]] T operator()(
size_t N)
const {
1966 template <
size_t N,
typename Scalar>
1968 [[nodiscard]] Perm<N, Scalar> operator()(Perm<N, Scalar>
const& x) {
1973 template <
typename Sub
class>
1974 struct Product<Subclass, std::enable_if_t<IsDerivedFromPTransf<Subclass>>> {
1976 operator()(Subclass& xy, Subclass
const& x, Subclass
const& y,
size_t = 0) {
1977 xy.product_inplace(x, y);
1981 template <
typename T>
1982 struct Hash<T, std::enable_if_t<IsDerivedFromPTransf<T>>> {
1983 [[nodiscard]]
constexpr size_t operator()(T
const& x)
const {
1984 return x.hash_value();
1988 template <
typename T>
1989 struct Complexity<T, std::enable_if_t<IsDerivedFromPTransf<T>>> {
1990 [[nodiscard]]
constexpr size_t operator()(T
const& x)
const noexcept {
1999 template <
typename T>
2003 x.increase_degree_by(n);
2018 template <
size_t N,
typename Scalar,
typename T>
2029 template <
size_t N,
typename Scalar,
size_t M>
2033 BitSet<M>
const& pt,
2037 pt.apply([&x, &res](
size_t i) { res.set(x[i]); });
2047 template <
size_t N,
typename Scalar,
typename T>
2066 template <
size_t N,
typename Scalar>
2070 using type = BitSet<BitSet<1>::max_size()>;
2078 template <
size_t N,
typename Scalar>
2090 template <
size_t N,
typename Scalar,
typename T>
2103 template <
size_t N,
typename Scalar,
size_t M>
2116 template <
size_t N,
typename Scalar,
typename T>
2137 template <
size_t N,
typename Scalar>
2165 template <
size_t N,
typename Scalar>
2171 LIBSEMIGROUPS_ASSERT(res.degree() == pt.degree());
2172 LIBSEMIGROUPS_ASSERT(res.degree() == x.degree());
2173 res.product_inplace(pt, x);
2184 template <
size_t N,
typename Scalar,
typename T>
2195 template <
size_t N,
typename Scalar,
size_t M>
2199 BitSet<M>
const& pt,
2208 template <
size_t N,
typename Scalar>
2215 res.product_inplace(x, pt);
2234 template <
size_t N,
typename Scalar,
typename T>
2256 template <
size_t N,
typename Scalar>
2260 using type = BitSet<BitSet<1>::max_size()>;
2268 template <
size_t N,
typename Scalar>
2279 template <
size_t N,
typename Scalar,
size_t M>
2290 template <
size_t N,
typename Scalar,
size_t M>
2300 template <
size_t N,
typename Scalar>
2319 template <
size_t N,
typename Scalar,
typename T>
2322 std::enable_if_t<std::is_integral_v<T>>> {
2327 LIBSEMIGROUPS_ASSERT(pt < p.degree());
2343 struct LeastTransfHelper {
2344#ifdef LIBSEMIGROUPS_HPCOMBI_ENABLED
2345 using type = std::conditional_t<N >= 17, Transf<N>, HPCombi::Transf16>;
2347 using type = Transf<N>;
2352 struct LeastPPermHelper {
2353#ifdef LIBSEMIGROUPS_HPCOMBI_ENABLED
2354 using type = std::conditional_t<N >= 17, PPerm<N>, HPCombi::PPerm16>;
2356 using type = PPerm<N>;
2361 struct LeastPermHelper {
2362#ifdef LIBSEMIGROUPS_HPCOMBI_ENABLED
2363 using type = std::conditional_t<N >= 17, Perm<N>, HPCombi::Perm16>;
2365 using type = Perm<N>;
2413 using LeastPerm =
typename detail::LeastPermHelper<N>::type;
2439 template <
size_t N,
typename Scalar>
2441 std::string_view prefix =
"",
2442 std::string_view braces =
"{}");
2468 template <
size_t N,
typename Scalar>
2470 std::string_view prefix =
"",
2471 std::string_view braces =
"{}");
2498 template <
size_t N,
typename Scalar>
2500 std::string_view prefix =
"",
2501 std::string_view braces =
"{}");
2532 template <
size_t N,
typename Scalar>
2534 std::string_view prefix =
"",
2535 std::string_view braces
2537 size_t max_width = 72);
2567 template <
size_t N,
typename Scalar>
2569 std::string_view prefix =
"",
2570 std::string_view braces
2572 size_t max_width = 72);
2604 template <
size_t N,
typename Scalar>
2606 std::string_view prefix =
"",
2607 std::string_view braces
2609 size_t max_width = 72);
2612#include "transf.tpp"
Partial transformations with dynamic degree.
Definition transf.hpp:731
DynamicPTransf(size_t n)
Construct with given degree.
Definition transf.hpp:771
size_t degree() const noexcept
Returns the degree of a partial transformation.
Definition transf.hpp:653
const_iterator end() const noexcept
Returns a const_iterator (random access iterator) pointing one past the last image value.
Definition transf.hpp:564
DynamicPTransf & increase_degree_by(size_t m)
Increase the degree in-place.
Scalar point_type
Type of the image values.
Definition transf.hpp:740
DynamicPTransf & increase_degree_by_no_checks(size_t m)
Increase the degree in-place.
Definition transf.hpp:809
std::vector< point_type > container_type
Type of the underlying container.
Definition transf.hpp:747
Partial permutations with static or dynamic degree.
Definition transf.hpp:1220
PPerm(std::initializer_list< point_type > dom, std::initializer_list< point_type > img, size_t M)
Construct from domain, range, and degree.
Definition transf.hpp:1269
PPerm(std::vector< OtherScalar > const &dom, std::vector< OtherScalar > const &img, size_t M)
Construct from domain, range, and degree.
Scalar point_type
Type of the image values.
Definition transf.hpp:1227
void product_inplace(PPerm const &f, PPerm const &g)
Multiply two partial perms and store the product in this.
static PPerm one(size_t M)
Returns the identity transformation on the given number of points.
Definition transf.hpp:1294
typename base_type::container_type container_type
Type of the underlying container.
Definition transf.hpp:1232
Base class for partial transformations.
Definition transf.hpp:128
typename Container::iterator iterator
Type of iterators pointing to image values.
Definition transf.hpp:521
bool operator==(PTransfBase const &that) const
Compare for equality.
Definition transf.hpp:365
Subclass operator*(Subclass const &that) const
Multiply by another partial transformation.
size_t rank() const
Returns the number of distinct image values.
Definition transf.hpp:611
typename Container::const_iterator const_iterator
Type of const iterators pointing to image values.
Definition transf.hpp:526
PTransfBase(PTransfBase const &)=default
Default copy constructor.
const_iterator begin() const noexcept
Definition transf.hpp:559
PTransfBase()=default
Default constructor.
bool operator>=(PTransfBase const &that) const
Compare for greater than or equal.
Definition transf.hpp:403
PTransfBase & operator=(PTransfBase const &)=default
Default copy assignment operator.
PTransfBase(std::initializer_list< Scalar > cont)
Construct from a container of images.
Definition transf.hpp:242
point_type const & at(size_t i) const
Get a const reference to the image of a point.
Definition transf.hpp:490
size_t degree() const noexcept
Returns the degree of a partial transformation.
Definition transf.hpp:653
const_iterator end() const noexcept
Definition transf.hpp:564
bool operator>(PTransfBase const &that) const
Compare for greater.
Definition transf.hpp:346
static Subclass make(OtherContainer &&cont)
Construct from universal reference container and check.
PTransfBase & operator=(PTransfBase &&)=default
Default move assignment operator.
PTransfBase(PTransfBase &&)=default
Default move constructor.
Scalar point_type
Type of the image values.
Definition transf.hpp:138
static Subclass make(std::initializer_list< OtherScalar > cont)
Construct from std::initializer_list and check.
iterator begin() noexcept
Returns an iterator (random access iterator) pointing at the first image value.
Definition transf.hpp:579
const_iterator cend() const noexcept
Returns a const_iterator (random access iterator) pointing one past the last image value.
Definition transf.hpp:554
Container container_type
Type of the underlying container.
Definition transf.hpp:143
const_iterator cbegin() const noexcept
Returns a const_iterator (random access iterator) pointing at the first image value.
Definition transf.hpp:539
point_type & at(size_t i)
Get a reference to the image of a point.
static Subclass one(size_t N)
Returns the identity transformation on the given number of points.
Definition transf.hpp:671
PTransfBase(Iterator first, Iterator last)
Construct from a range of images.
Definition transf.hpp:220
point_type & operator[](size_t i)
Get a reference to the image of a point.
Definition transf.hpp:440
static point_type undef() noexcept
Returns the value used to represent "undefined".
Definition transf.hpp:156
size_t hash_value() const
Returns a hash value.
Definition transf.hpp:628
bool operator<=(PTransfBase const &that) const
Compare for less than or equal.
Definition transf.hpp:384
bool operator<(PTransfBase const &that) const
Compare for less.
Definition transf.hpp:327
PTransfBase(Container const &cont)
Construct from a container of images.
Definition transf.hpp:194
point_type const & operator[](size_t i) const
Get a const reference to the image of a point.
Definition transf.hpp:458
void swap(PTransfBase &that) noexcept
Swap with another partial transformation.
Definition transf.hpp:638
PTransfBase(Container &&cont)
Construct from a container of images.
Definition transf.hpp:197
bool operator!=(PTransfBase const &that) const
Compare for inequality.
Definition transf.hpp:422
iterator end() noexcept
Returns an iterator (random access iterator) pointing one past the last image value.
Definition transf.hpp:594
Permutations with static or dynamic degree.
Definition transf.hpp:1524
static Perm one(size_t M)
Returns the identity transformation on the given number of points.
Definition transf.hpp:1542
Scalar point_type
Type of the image values.
Definition transf.hpp:1531
typename PTransf< N, point_type >::container_type container_type
Type of the underlying container.
Definition transf.hpp:1536
Partial transformations with static degree.
Definition transf.hpp:836
StaticPTransf & increase_degree_by(size_t)
Increase the degree in-place.
Definition transf.hpp:883
const_iterator begin() const noexcept
Returns a const_iterator (random access iterator) pointing at the first image value.
Definition transf.hpp:559
std::array< Scalar, N > container_type
Type of the underlying container.
Definition transf.hpp:846
const_iterator end() const noexcept
Returns a const_iterator (random access iterator) pointing one past the last image value.
Definition transf.hpp:564
StaticPTransf(size_t n)
Construct with given degree.
StaticPTransf()
Default constructor.
Definition transf.hpp:862
Scalar point_type
Type of the image values.
Definition transf.hpp:841
Transformations with static or dynamic degree.
Definition transf.hpp:1004
static Transf one(size_t M)
Returns the identity transformation on the given number of points.
Definition transf.hpp:1055
Scalar point_type
Type of the image values.
Definition transf.hpp:1011
void product_inplace(Transf const &f, Transf const &g)
Multiply two transformations and store the product in this.
typename base_type::container_type container_type
Type of the underlying container.
Definition transf.hpp:1016
std::string to_human_readable_repr(Action< Element, Point, Func, Traits, LeftOrRight > const &action)
Return a human readable representation of an Action object.
Undefined const UNDEFINED
Value for something undefined.
#define LIBSEMIGROUPS_EXCEPTION(...)
Throw a LibsemigroupsException.
Definition exception.hpp:99
enable_if_is_same< Return, Blocks > make(Container const &cont)
Check the arguments, construct a Blocks object, and check it.
Definition bipart.hpp:856
typename detail::LeastPermHelper< N >::type LeastPerm
Type of perms using the least memory for a given degree.
Definition transf.hpp:2413
static constexpr bool IsPPerm
Helper variable template.
Definition transf.hpp:1328
auto one(T const &f) -> std::enable_if_t< IsDerivedFromPTransf< T >, T >
Returns the identity transformation of same degree as a sample.
Definition transf.hpp:1805
static constexpr bool IsTransf
Helper variable template.
Definition transf.hpp:1088
void throw_if_not_perm(Perm< N, Scalar > const &f)
Check a permutation.
Definition transf.hpp:1598
typename detail::LeastTransfHelper< N >::type LeastTransf
Type of transformations using the least memory for a given degree.
Definition transf.hpp:2383
PPerm< N, Scalar > left_one(PPerm< N, Scalar > const &f)
Returns the left one of a partial perm.
typename detail::LeastPPermHelper< N >::type LeastPPerm
Type of partial perms using the least memory for a given degree.
Definition transf.hpp:2398
void domain(T const &f, std::vector< Scalar > &dom)
Replace the contents of a vector by the set of points where a partial transformation is defined.
static constexpr bool IsPTransf
Helper variable template.
Definition transf.hpp:947
PPerm< N, Scalar > right_one(PPerm< N, Scalar > const &f)
Returns the right one of a partial perm.
static constexpr bool IsDynamic
Helper variable template.
Definition transf.hpp:712
static constexpr bool IsStatic
Helper variable template.
Definition transf.hpp:702
void throw_if_not_pperm(PPerm< N, Scalar > const &f)
Check a partial perm.
Definition transf.hpp:1351
void image(T const &f, std::vector< Scalar > &im)
Replace the contents of a vector by the set of images of a partial transformation.
void throw_if_image_value_out_of_range(PTransfBase< Scalar, Container > const &f)
Check a partial transformation.
std::string to_input_string(Transf< N, Scalar > const &x, std::string_view prefix="", std::string_view braces="{}")
Return a string that can be used to recreate a transformation.
static constexpr bool IsPerm
Helper variable template.
Definition transf.hpp:1575
static constexpr bool IsDerivedFromPTransf
Helper variable template.
Definition transf.hpp:102
std:: conditional_t< N==0, DynamicPTransf< Scalar >, StaticPTransf< N, Scalar > > PTransf
Partial transformations with static or dynamic degree.
Definition transf.hpp:915
void inverse(PPerm< N, Scalar > const &from, PPerm< N, Scalar > &to)
Replace contents of a partial perm with the inverse of another.
Namespace for everything in the libsemigroups library.
Definition action.hpp:44
auto to(detail::KnuthBendixImpl< Rewriter, ReductionOrder > &kb) -> std::enable_if_t< std::is_same_v< Presentation< typename Result::word_type >, Result >, Result >
No doc.
Adapter for the complexity of multiplication.
Definition adapters.hpp:128
Adapter for the degree of an element.
Definition adapters.hpp:166
Adapter for hashing.
Definition adapters.hpp:453
size_t operator()(Value const &x) const
Hash x using std::hash.
Definition adapters.hpp:462
void operator()(PPerm< N, Scalar > &res, PPerm< N, Scalar > const &pt, PPerm< N, Scalar > const &x) const noexcept
Definition transf.hpp:2212
void operator()(T &res, T const &pt, PPerm< N, Scalar > const &x) const
Definition transf.hpp:2236
void operator()(T &res, T const &pt, Transf< N, Scalar > const &x) const
Stores the image of pt under the left action of x in res.
Adapter for the value of a left action.
Definition adapters.hpp:357
void operator()(BitSet< M > &res, BitSet< M > const &pt, PPerm< N, Scalar > const &x) const
Stores the image set of pt under x in res.
void operator()(PPerm< N, Scalar > &res, PPerm< N, Scalar > const &pt, PPerm< N, Scalar > const &x) const noexcept
Stores the idempotent in res.
Definition transf.hpp:2168
void operator()(T &res, T const &pt, PPerm< N, Scalar > const &x) const
Stores the image set of pt under x in res.
void operator()(T &res, T const &pt, Perm< N, Scalar > const &p) const noexcept
Stores the image of pt under the action of p in res.
Definition transf.hpp:2324
T operator()(T pt, Perm< N, Scalar > const &x)
Returns the image of pt under the action of p.
Definition transf.hpp:2332
void operator()(BitSet< M > &res, BitSet< M > const &pt, Transf< N, Scalar > const &x) const
Stores the image set of pt under x in res.
Definition transf.hpp:2032
void operator()(T &res, T const &pt, Transf< N, Scalar > const &x) const
Stores the image set of pt under x in res.
Adapter for the value of a right action.
Definition adapters.hpp:399
void operator()(T &x, size_t n) const
Returns x->increase_degree_by(n).
Definition transf.hpp:2002
Adapter for increasing the degree of an element.
Definition adapters.hpp:206
Adapter for the inverse of an element.
Definition adapters.hpp:326
void operator()(BitSet< M > &res, PPerm< N, Scalar > const &x) const
void operator()(BitSet< M > &res, Transf< N, Scalar > const &x) const
void operator()(T &res, Transf< N, Scalar > const &x) const
Adapter for the action on LambdaValue's.
Definition adapters.hpp:840
BitSet< BitSet< 1 >::max_size()> type
Definition transf.hpp:2260
BitSet< BitSet< 1 >::max_size()> type
Definition transf.hpp:2070
Adapter for lambda functions.
Definition adapters.hpp:800
Adapter for the identity element of the given type.
Definition adapters.hpp:253
Adapter for the product of two elements.
Definition adapters.hpp:291
size_t operator()(PPerm< N, Scalar > const &x) const
Definition transf.hpp:2305
size_t operator()(Transf< N, Scalar > const &x) const
Definition transf.hpp:2151
Adapter for calculating ranks.
Definition adapters.hpp:937
void operator()(BitSet< M > &res, PPerm< N, Scalar > const &x) const
void operator()(T &res, Transf< N, Scalar > const &x) const
Adapter for the action on RhoValue's.
Definition adapters.hpp:861
typename LambdaValue< PPerm< N, Scalar > >::type type
Definition transf.hpp:2272
std::vector< Scalar > type
Definition transf.hpp:2082
Adapter for rho functions.
Definition adapters.hpp:819