29 : other(_other), indexPosition(_indexPos), dimension(_dim), external(_external) {}
size_t dimension
Dimension of the link, always equals to other->tensorObject->dimensions[indexPosition].
The main namespace of xerus.
bool links(const size_t _other) const noexcept
Checks whether this link links to a particular node.
Class representing a link from a TensorNode to another node or an external index. ...
std::ostream & operator<<(std::ostream &_out, const xerus::Index &_idx)
Allows to pretty print indices, giving the valueId and span.
bool external
Flag indicating whether this link correspond to an external index.
size_t other
The index of the otherNode this Link links to.
size_t indexPosition
IndexPosition on the other node or index of external index.
Header file for the TensorNetwork class.