Reduce the tensor to one matrix by summing all slices efficiently.
tensor2mat(X,binary=FALSE,symmetrize=FALSE)
List of tensor slices (Latent folding).
when true returns binary matrix (i.e. ignores multiple connections between entities), default FALSE.
when true all relations are considered symetric before adding the slices, default FALSE.
Adjacency matrix according to flags binary and symmetrize.