xerus
a general purpose tensor library
index.h File Reference

Header file for the Index class. More...

#include "basic.h"
#include <atomic>
#include <bitset>
#include <vector>

Go to the source code of this file.

Classes

class  xerus::Index
 Class used to represent indices that can be used to write tensor calculations in index notation. More...
 

Namespaces

 xerus
 The main namespace of xerus.
 

Functions

bool xerus::operator!= (const Index &_a, const Index &_b)
 Two Indices are equal if their valueId coincides. Fixed indices are never equal. More...
 
bool xerus::operator< (const Index &_a, const Index &_b)
 The Comparision operator is needed for indices to be orderable in std::set, the valueId is used. More...
 
std::ostream & xerus::operator<< (std::ostream &_out, const xerus::Index &_idx)
 Allows to pretty print indices, giving the valueId and span. More...
 
bool xerus::operator== (const Index &_a, const Index &_b)
 Two Indices are equal if their valueId coincides. Fixed indices are never equal. More...
 

Detailed Description

Header file for the Index class.

Definition in file index.h.