conditions on dimensions of factor manifolds in productmanifold?

22 views
Skip to first unread message

daniel hernandez

unread,
Jan 16, 2016, 3:30:39 AM1/16/16
to Manopt
Hi, I just started very recently using manopt and I have a rather simple question. Are there any conditions on the dimensions of the manifolds that productmanifold can put together.

For instance, the code:

tuple.Wtemp = stiefelfactory(3,3);

tuple.Ptemp = euclideanfactory(3,4);

 

manifold = productmanifold(tuple);


works fine. But the code:


tuple.Wtemp = stiefelfactory(2,3);

tuple.Ptemp = euclideanfactory(3,4);

 

manifold = productmanifold(tuple);


where I just changed the 1st dimension in the first line gives an error


Subscripted assignment dimension mismatch.


Error in stiefelfactory/random (line 130)

            X(:, :, i) = Q;


I was looking through the documentation but could not find it explained so, are there conditions on the dimensions of the manifolds productmanifold can handle?


BM

unread,
Jan 16, 2016, 4:40:52 AM1/16/16
to Manopt
Hello Daniel,

The problem is not on the productmanifold side, rather it is the way the Stiefel manifold factory is called in your code. In stiefelfactory(n,r), r has to be <= n. Could you verify this?

Regards,
Bamdev






daniel hernandez

unread,
Jan 17, 2016, 3:15:10 AM1/17/16
to Manopt
Hi Bamdev,

Thanks. You were right. I had a bug in my code that was passing the wrong dimensions to stiefelfactory. Sorry about that, I should have tested more.

Regards,
Daniel


BM

unread,
Jan 17, 2016, 5:56:13 AM1/17/16
to Manopt
Hello Daniel, 

We are happy that it worked out nicely. Let us know if you have any other query. 

Regards,
Bamdev


Reply all
Reply to author
Forward
0 new messages