Error in running “low_rank_tensor_completion_TT.m”

37 views
Skip to first unread message

HF Z

unread,
Mar 25, 2024, 6:36:39 AMMar 25
to Manopt
Dear Manopt team,

Recently I download Manopt 7.1 and run to file ‘run_all_examples.m’ in the ‘examples’ folder (after installing tensor_toolbox-v3.6 and other necessary toolboxes), it reports as follows:
Screenshot 2024-03-24 at 22.20.28.png
Then I try to run the file “low_rank_tensor_completion_TT.m” individually and it reports as follows
Screenshot 2024-03-24 at 22.25.17.png
This looks like a bug embedded in this package since I haven’t modified any file, could you please help to fix it?

My laptop is a MacBook with the chip 2 GHz Quad-Core Intel Core i5, my MATLAB version is 2022b. Hope these information can be helpful.

Best,
Hanfeng

Nicolas Boumal

unread,
Mar 25, 2024, 6:57:47 AMMar 25
to Manopt
Hello Hanfeng,

Thanks for posting with a detailed description of the issue.

For now, I see two possible issues to look into. The file TT_Weingarten.m (link to github) has this documentation (I extended it just now):

% NOTE: this manifold requires the use of a modified version of TTeMPS_1.1,
% which is packaged with Manopt and can be found in
% manopt/manopt/manifolds/ttfixedrank/TTeMPS_1.1
% It also uses some MEX files that you may need to compile by
% running install_mex.m in manopt/manopt/manifolds/ttfixedrank.


I recommend the following:

1) Run the script install_mex.m in that folder.  This should compile the MEX files for your platform. That requires Matlab to have access to a C compiler: you can run "mex -setup" if necessary to install one.

2) We had to modify the toolbox TTeMPS a little bit (you can see the changes here): it's best to use that modified version of TTeMPS when using Manopt. It's packaged with Manopt, so the code is already there: just make sure it's on your Matlab path.

I hope this helps. Let us know if not.

Best,
Nicolas

HF Z

unread,
Mar 25, 2024, 7:30:00 AMMar 25
to Manopt
Thanks, I just install Xcode15 and then run the script install_mex.m and it works, very nice and quick solution!

For those who may have the same problem as mine, you can refer to
for supported and compatible compilers of Mac. Similar webpages for Windows and Linux are also available.


Best,
Hanfeng

Reply all
Reply to author
Forward
0 new messages