[Ktechlab-devel] Converting to Eigen - patch for revision, ver.1

Alan Grimes agrimes at speakeasy.net
Wed Aug 12 16:23:51 UTC 2009


> Yes, I know. Still, that rank() call should be removed, as LU::solve()
> method returns false if it can't solve the equation system. That case is
> not addressed -- the question is what to do in that case: write a "?"
> for voltage level, or use the last valid state for the circuit?

Yeah, you should simply skip the LU step and solve the vector with the
old LU, if the vector has changed.

You should also emit debugging information because it means that there
is probably something wrong with one of the components. Nb, there are
some pathalogical circuits that inherently produce invalid matrices. I
can send you an example.

-- 
New president: Here we go again...
Chemistry.com: A total rip-off.
Powers are not rights.





More information about the Ktechlab-devel mailing list