Legendre Tensor Decomposition