I need orthonormal n x p matrices Q (Q'Q = I_p), which columns are centred, i.e. Q'1_n = 0_m.
Is there a way to achieve this with the current factories?
Thanks,
Nickolay
If you define in stiefelfactory:
M.dim = @() k*(n*p - .5*p*(p+1) - p);
center = @(X) bsxfun(@minus, X, mean(X));
and change the retraction to
[Q, R] = qr(center(Y(:, :, i)), 0);
seems enough.
All the best,
Nickolay