I have a 3 x 3 x 3 tensor and I am looking to compute its tensor rank (https://en.wikipedia.org/wiki/Tensor_rank_decomposition), 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 within Sage?
I am currently running Sage v 8.1
Thank you for your time!