#include <index.hpp>
|
| typedef std::vector< size_t > | index_t |
| |
◆ index_t
◆ Index() [1/2]
| mptensor::Index::Index |
( |
| ) |
|
|
inline |
◆ Index() [2/2]
| mptensor::Index::Index |
( |
const index_t & |
index | ) |
|
|
inline |
◆ assign()
| void mptensor::Index::assign |
( |
size_t |
n, |
|
|
size_t |
j[] |
|
) |
| |
◆ inverse()
| Index mptensor::Index::inverse |
( |
| ) |
|
◆ operator+=()
| Index & mptensor::Index::operator+= |
( |
const Index & |
rhs | ) |
|
◆ operator==()
| bool mptensor::Index::operator== |
( |
const Index & |
rhs | ) |
const |
◆ operator[]() [1/2]
| size_t & mptensor::Index::operator[] |
( |
size_t |
i | ) |
|
|
inline |
◆ operator[]() [2/2]
| const size_t & mptensor::Index::operator[] |
( |
size_t |
i | ) |
const |
|
inline |
◆ push()
| void mptensor::Index::push |
( |
size_t |
i | ) |
|
|
inline |
◆ resize()
| void mptensor::Index::resize |
( |
size_t |
n | ) |
|
|
inline |
◆ size()
| size_t mptensor::Index::size |
( |
| ) |
const |
|
inline |
◆ sort()
| void mptensor::Index::sort |
( |
| ) |
|
◆ operator+()
Joint two indices.
Index(0,1) + Index(2,3) = Index(0,1,2,3)
◆ operator<<()
| std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const Index & |
idx |
|
) |
| |
|
related |
The format is the same as a list of python, for example "[0, 1, 2]".
The documentation for this class was generated from the following files:
- /home/runner/work/mptensor/mptensor/include/mptensor/index.hpp
- /home/runner/work/mptensor/mptensor/src/index.cc