parafac_fun function

PARAFAC loss function calculation