#include <TreeNode.h>
TreeNode structure used to build a tree for stroing HoppingAmplitudes . Used by AmplitudeSet.
| TBTK::TreeNode::TreeNode |
( |
| ) |
|
| void TBTK::TreeNode::generateBasisIndices |
( |
| ) |
|
Generate Hilbert space indices. No more HoppingAmplitudes should be added after this call.
| int TBTK::TreeNode::getBasisIndex |
( |
const Index & |
index | ) |
const |
Get Hilbert space basis index for given physical index.
| Index TBTK::TreeNode::getPhysicalIndex |
( |
int |
basisIndex | ) |
const |
Get physical index for given Hilbert space absis index.
| const TreeNode * TBTK::TreeNode::getSubTree |
( |
const Index & |
subspace | ) |
const |
| bool TBTK::TreeNode::isProperSubspace |
( |
const Index & |
subspace | ) |
|
Returns true if the subspace is a proper subsapce. That is, if the corresponding subtree only contains HoppingAmplitudes that connects sistes within the subtree.
| void TBTK::TreeNode::print |
( |
| ) |
|
| void TBTK::TreeNode::sort |
( |
TreeNode * |
rootNode | ) |
|
Sort HoppingAmplitudes in row order.
| int TBTK::TreeNode::basisIndex |
Basis index for the Hamiltonian.
| int TBTK::TreeNode::basisSize |
Basis size of Hamiltonian.
| std::vector<TreeNode> TBTK::TreeNode::children |
Child nodes. Never non-empty at the same time as hoppingAmplitudes
HoppingAmplitudes stored on this node, should only be non-empty if the node is a leaf node. That is, if the node corresponds to a last subindex index.
The documentation for this class was generated from the following files:
- /home/kristofer/TBTK/TBTK/calc/TightBindingLib/include/TreeNode.h
- /home/kristofer/TBTK/TBTK/calc/TightBindingLib/src/TreeNode.cpp