RuntimeWarning: MUMPS is not available, SciPy built-in solver will be used as a fallback. Performance can be very poor in this case. warnings.warn("MUMPS is not available, " 因为不影响计算结果,所以没有在意,但是因为警告中说会对运行时间有影响,所以一直耿耿于怀。经过一段时间摸索发现MUMPS: MU...
Please see scipy.sparse.linalg.eigsh for documentation. Notes --- mumpy only works with complex numbers at the moment. """ class LuInv(sla.LinearOperator): def __init__(self, A): inst = mumps.MUMPSContext() inst.analyze(A, ordering='pord') inst.factor(A) self.solve = inst.solve...