index_list.h
size_type count(const std::string &x) const
Definition: index_list.h:595
size_type first_size() const
Definition: index_list.h:611
IndexList(const container_type &indices)
constructs from a container of index labels
Definition: index_list.h:145
BipartiteIndexList(const std::string str)
Definition: index_list.h:417
bool is_permutation(const IndexList &other) const
Check that this index list is a permutation of other.
Definition: index_list.h:254
const auto & data() const
Definition: index_list.h:644
BipartiteIndexList & operator=(const std::string &str)
Definition: index_list.h:444
void find_common(InIter1 first1, const InIter1 last1, InIter2 first2, const InIter2 last2, std::pair< InIter1, InIter1 > &common1, std::pair< InIter2, InIter2 > &common2)
Finds the range of common elements for two sets of iterators.
Definition: index_list.h:70
container_type::const_iterator const_iterator
A read-only random-access iterator.
Definition: index_list.h:380
container::svector< std::string > container_type
Definition: index_list.h:109
const_iterator end() const
Definition: index_list.h:538
Permutation of a sequence of objects indexed by base-0 indices.
Definition: permutation.h:130
bool operator==(const IndexList &v0, const IndexList &v1)
Definition: index_list.h:329
void swap(BipartiteIndexList &other) noexcept
Definition: index_list.h:659
friend IndexList operator*(const ::TiledArray::Permutation &, const IndexList &)
Definition: index_list.h:338
const std::string & operator[](const std::size_t n) const
Returns the n-th index.
Definition: index_list.h:187
auto positions(const std::string &x) const
Definition: index_list.h:578
const_reference operator[](const size_type n) const
Definition: index_list.h:561
std::enable_if< TiledArray::detail::is_numeric_v< Scalar >, ScalAddExpr< Left, Right, Scalar > >::type operator*(const AddExpr< Left, Right > &expr, const Scalar &factor)
Scaled-addition expression factor.
Definition: add_expr.h:191
IndexList & operator=(const std::string &str)
Definition: index_list.h:156
bool operator!=(const IndexList &v0, const IndexList &v1)
Definition: index_list.h:334
auto common_annotations(T &&v, Args &&... args)
Returns the set of annotations found in all of the index lists.
Definition: index_list.h:731
typename container_type::const_iterator const_iterator
Definition: index_list.h:110
void swap(BipartiteIndexList &, BipartiteIndexList &)
Exchange the content of the two index lists.
Definition: index_list.h:759
const std::string & at(const std::size_t n) const
Returns the n-th index.
Definition: index_list.h:184
Permutation permutation(const V &other) const
Computes permutation that converts an index list to this list.
Definition: index_list.h:246
BipartiteIndexList & operator*=(const Permutation &p)
Definition: index_list.h:458
const value_type & const_reference
A read-only reference to a string index.
Definition: index_list.h:377
Permutation var_perm(const IndexList &l, const IndexList &r)
Definition: index_list.h:829
bool operator==(const BipartiteIndexList &other) const
Definition: index_list.h:476
auto all_annotations(T &&v, Args &&... args)
Returns a set of each annotation found in at least one of the index lists.
Definition: index_list.h:720
Definition: array_impl.cpp:28
const_reference at(const size_type n) const
Definition: index_list.h:550
IndexList(InIter first, InIter last)
constructs from a range of index labels
Definition: index_list.h:132
auto bound_annotations(const IndexList_ &out, Args &&... args)
Definition: index_list.h:747
friend BipartiteIndexList operator*(const ::TiledArray::Permutation &, const BipartiteIndexList &)
Definition: index_list.h:780
IndexList first() const
Definition: index_list.h:627
void swap(IndexList &, IndexList &)
Exchange the content of the two index lists.
Definition: index_list.h:325
const_iterator begin() const
Definition: index_list.h:514
BipartiteIndexList & operator=(const BipartiteIndexList &other)=default
unsigned int size() const
Returns the number of elements in the index list.
Definition: index_list.h:197
IndexList & operator*=(const Permutation &p)
Definition: index_list.h:161
IndexList second() const
Definition: index_list.h:629
bool is_permutation(const BipartiteIndexList &other) const
Check that this index list is a permutation of other.
Definition: index_list.h:692
BipartiteIndexList(const BipartiteIndexList &other)=default
const_iterator end() const
Returns an iterator to the end of the index list.
Definition: index_list.h:181
auto count(const std::string &x) const
Definition: index_list.h:220
auto positions(const std::string &x) const
Definition: index_list.h:230
size_type second_size() const
Definition: index_list.h:625
decltype(auto) at(GeneralizedPair &&v, std::size_t idx)
at(pair, i) extracts i-th element from gpair
Definition: type_traits.h:1268
BipartiteIndexList()=default
unsigned int dim() const
Returns the number of elements in the index list.
Definition: index_list.h:192
ExprTraceTarget operator<<(std::ostream &os, const TsrExpr< A, Alias > &tsr)
Expression trace factory function.
Definition: expr_trace.h:130
BipartitePermutation permutation(const V &other) const
Computes the permutation to go from other to this instance.
Definition: index_list.h:684
IndexList & operator=(const IndexList &other)
Definition: index_list.h:150
IndexList(const IndexList &other)
Definition: index_list.h:148