TensorLy (Python)
Translation table
| Tensor Toolbox | This package |
|---|---|
cp_normalize(cp_tensor) | normalizecomps(cp_tensor) |
Noteworthy differences
normalizecomps v.s. cp_normalize in TensorLy
normalizecompssupports- normalizing any subset of the weight vector and factor matrices,
- with respect to any $\ell_p$ norm, and
- distributing the excess weight into any subset of the weight vector and factor matrices.
normalizecompscomes in two varieties:normalizecomps!normalizes theCPDin-place.normalizecompsmakes a new copy.
Ref: http://tensorly.org/stable/modules/generated/tensorly.cp_tensor.cp_normalize.html