MPQC  3.0.0-alpha
sc::sma2::IndexList Class Reference

An IndexList is a vector of indices. More...

#include <chemistry/qc/lmp2/sma.h>

Public Member Functions

 IndexList (int)
 
 IndexList (int, int)
 
 IndexList (int, int, int)
 
 IndexList (int, int, int, int)
 
 IndexList (const IndexList &)
 
 IndexList (const IndexList &il1, const IndexList &il2)
 Append the indices from both IndexList objects, il1 and il2, to form this IndexList.
 
 IndexList (const std::vector< int > &)
 
IndexList reverse_mapping () const
 
void append_additional_indices (const IndexList &)
 
int & i (int a)
 
const int & i (int a) const
 
int n () const
 
void set_n (int n)
 
bool is_identity () const
 Returns true if this is 0, 1, ..., n-1.
 
bool is_identity_permutation () const
 Returns true if this is a permutation of 0, 1, ..., n-1.
 
void print (std::ostream &o=sc::ExEnv::outn()) const
 
bool operator> (const IndexList &il) const
 
bool operator< (const IndexList &il) const
 
bool operator== (const IndexList &il) const
 
bool operator!= (const IndexList &il) const
 
bool operator>= (const IndexList &il) const
 
bool operator<= (const IndexList &il) const
 

Static Public Member Functions

static IndexList identity (int n)
 

Detailed Description

An IndexList is a vector of indices.

Each element corresponds to the position of an index in an array. For example, the index list [3, 2] corresponds to the third and second indices, in that order, in a multidimensional array.


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

Generated at Sun Jan 26 2020 23:24:15 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.