MCPcopy Create free account
hub / github.com/DedalusProject/dedalus / matvec

Function matvec

dedalus/tools/array.py:425–426  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

423 C = A - target * B
424 solver = matsolver(C)
425 def matvec(x):
426 return solver.solve(B.dot(x))
427 D = spla.LinearOperator(dtype=A.dtype, shape=A.shape, matvec=matvec)
428 # Solve using scipy sparse algorithm
429 evals, evecs = spla.eigs(D, k=N, which='LM', sigma=None, **kw)

Callers

nothing calls this directly

Calls 1

solveMethod · 0.45

Tested by

no test coverage detected