How many columns can the input to the JacobianMultiplyFcn have?
Mostra commenti meno recenti
I am using the JacobianMultiplyFcn option of lsqnonlin. The documentation says that JacobianMultiplyFcn is to be a handle to a function jmfun with the syntax,
W = jmfun(Jinfo,Y,flag)
where,
Y is a matrix that has the same number of rows as there are dimensions in the problem. flag determines which product to compute:
- If flag == 0 then W = J'*(J*Y).
- If flag > 0 then W = J*Y.
- If flag < 0 then W = J'*Y.
However, the documentation does not specify how many columns Y will have. I initially assumed Y will always be a column vector, but after some dbstops, I am seeing that this is sometimes, but not always, the case. In particular, I am seeing a situation where flag=0 and Y is Nx2.
So my question is, how many columns can I expect Y to have in the given input. I need to know this so that,
(a) I can plan the implementation of jmfun.
(b) I can know how much RAM might be required per iteration.
Since this option is supposed to be for large scale problems, it seems silly if Y couldn't be counted upon to be "substantially skinny".
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Tuning Goals in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!