You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Manopt
Dear community members,
Thank you for taking the time to read this email. As a newcomer to Pymanopt, I am seeking assistance with the task of converting Matlab code to Python, encountering some questions along the way. The original Matlab codes are provided below:
where Cost and Euclidean_gradient are self-defined. The python codes I tried are attached and it raises ValueError like this:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
I have reviewed the Cost and Euclidean_gradient functions, and they appear to be correctly defined. Has anyone else encountered a similar issue or can provide guidance on resolving this error?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Manopt
Hi,
I fear I can not help much, since I do not know what your `sum_rate_direct_egrad` returns, but it seems that maybe it should return a number (since you are on the circle if I see corerectly) but it does return a vector?
That way the inner product (computed to obtain df0) might return a vector as well (working element wise on your vector) instead of a number which then leads to exactly an error message as you have.