hatvis.representations.tensor_apply#

hatvis.representations.tensor_apply(H, x)[source]#

Tensor–vector product \((\mathcal{A}\mathbf{x}^{k-1})_i=\sum_{e\ni i} w_e\prod_{j\in e\setminus i}x_j\).

Works for any (also non-uniform) hypergraph and never forms the tensor.