Learn to Use ITensor

main / classes / indexset C++v2 | C++v3

ITensor version 3 has not been released yet. This documentation is a preview only.

IndexSet

Container for storing indices.

IndexSet is defined in "itensor/indexset.h". Also see "itensor/indexset_impl.h". An IndexSet is a subclass of Range which is defined in "itensor/tensor/range.h".

Synopsis

//Make some indices
auto b1 = Index(5);
auto b3 = Index(8);
auto s2 = Index(2,"Site"); 
auto s3 = Index(2,"Site");

auto inds = IndexSet(b1,b3,s2,s3);

//Print all the indices
for(auto& i : inds) println(i);

//Or just print the whole set at once
println("inds = ",inds);

Print(rank(inds)); //prints 4

Constructors

Accessor Methods

Other Class Methods and Features

Index Tag Methods

Prime Level Methods

Other IndexSet Functions


This page current as of version 3.0.0


Back to Classes
Back to Main