PTA3 function

Principal Tensor Analysis on 3 modes