Code for decomposing symmetric tensors