Skip to content
Prev 387423 / 398502 Next

Very slow optim()

On Sat, Mar 13, 2021 at 4:33 PM Spencer Graves
<spencer.graves at effectivedefense.org> wrote:
Sorry for being unclear: the images themselves (b or x) are viewed as
a vector, so would be 90000x1. A would be 90000x90000, so essentially
impossible to construct. CG can solve Ax=b as long as Ax can be
evaluated (for arbitrary x).
A has to be p.d.
Well, in my experience, optim(method="CG") behaves quite badly if A is
not full-rank. I don't think other implementations will be any better,
but I am not sure.

If you are interested in practical uses of this, we can discuss more off-list.

-Deepayan