permutation.h
Permutation & operator*=(Permutation &p1, const Permutation &p2)
return *this ^ other
Definition: permutation.h:505
bool operator!=(const Permutation &p1, const Permutation &p2)
Permutation inequality operator.
Definition: permutation.h:460
Permutation(const Permutation &)=default
~Permutation()=default
Permutation(std::initializer_list< Integer > list)
Construct permutation with an initializer list.
Definition: permutation.h:224
Permutation operator*(const Permutation &p1, const Permutation &p2)
Permutation multiplication operator.
Definition: permutation.h:500
std::ostream & operator<<(std::ostream &output, const Permutation &p)
Add permutation to an output stream.
Definition: permutation.h:481
void permute_array(const TiledArray::symmetry::Permutation &perm, const Arg &arg, Result &result)
Create a permuted copy of an array.
Definition: permutation.h:536
bool operator==(const Permutation &p1, const Permutation &p2)
Permutation equality operator.
Definition: permutation.h:450
std::map< index_type, index_type > Map
Definition: permutation.h:123
Permutation()=default
bool is_in_domain(Integer i) const
Test if an index is in the domain of this permutation.
Definition: permutation.h:303
Permutation Permutation_
Definition: permutation.h:119
Permutation(InIter first, InIter last)
Construct permutation using its 1-line form given by range [first,last)
Definition: permutation.h:200
Permutation(Permutation &&)=default
bool operator<(const Permutation &p1, const Permutation &p2)
Permutation less-than operator.
Definition: permutation.h:470
index_type operator[](index_type e) const
Computes image of an element under this permutation.
Definition: permutation.h:273
Permutation of a sequence of objects indexed by base-0 indices.
Definition: permutation.h:117
Permutation operator-(const Permutation &perm)
Inverse permutation operator.
Definition: permutation.h:492
Map::const_iterator const_iterator
Definition: permutation.h:124
Permutation(Index &&a)
Construct permutation using 1-line form given as an integral range.
Definition: permutation.h:216
Permutation(Map p)
Construct permutation using its compressed 2-line form given by std::map.
Definition: permutation.h:230
Definition: array_impl.cpp:28
Permutation & operator=(const Permutation &)=default
Permutation mult(const Permutation &other) const
Product of this permutation by other.
Definition: permutation.h:360
Permutation & operator=(Permutation &&other)=default
friend std::ostream & operator<<(std::ostream &output, const Permutation &p)
Add permutation to an output stream.
Definition: permutation.h:481
Permutation operator^(const Permutation &perm, int n)
Raise perm to the n-th power.
Definition: permutation.h:516
container::svector< T > vector
Definition: permutation.h:122