Tensor decomposition and Tensorly
I have a 3 x 3 x 3 tensor and I am looking to compute its tensor rank (https://en.wikipedia.org/wiki/Tensor_...), aka CP rank. The only software in Python that I am currently aware of to do this is Tensorly, a Python package.
Is there anything in Sage itself that deals with tensor decomposition or any implementation of the Alternative Least Squares method (I believe this is the most common method for tensor decomposition) within Sage?
I am currently running Sage v 8.1
Thank you for your time!