Registered Member
|
Please help me figure out how to use the pre-computed LU decomposition. I am solving this in a loop where some of the A matrices are the same. If they are the same, An = An-1, I want to skip the decomposition. I have tried various things but cannot get it to work. How can I save the pre-computation so that it is still in scope when I need it (the next loop)? Below is my loop that works. When I try to put an if condition around luofa.compute(A); it fails.
|
Moderator
|
that should work, perhaps that's your condition which is wrong... IF you cannot figure it out, please post the version with the condition.
|
Registered Member
|
You are right! I fixed the condition statement and it works
|
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar