A Hierarchical Tensor Decomposition library in Python
- All component in HT format are defined in a binary tree, which is an instance of class
Node
.
- Run
truncate_ltr(x, rmax)
to decompose a tensorx
to HT format, whose maximum rank of each node isrmax
. - Run
ht_full(x)
to recover an HT format to the original tensor.