PCFactorSetShiftType
Issue #84
resolved
To avoid a zero pivot I use -pc_factor_shift_type POSITIVE_DEFINITE. I want to add this into the code, but I could not find how to do it.
I tried pc.setFactorShift(shift_type=A.FactorShiftType.POSITIVE_DEFINITE)
or
pc.setFactorShift(shift_type='POSITIVE_DEFINITE')
But they didn't work. What is the correct way of doing it?
Comments (2)
-
reporter -
reporter - changed status to resolved
- Log in to comment
I was wrong, the problem was something else.
pc.setFactorShift(shift_type=A.FactorShiftType.POSITIVE_DEFINITE)
works fine.