Skip to content
Snippets Groups Projects
Commit 38a0da4d authored by Filippo Vicentini's avatar Filippo Vicentini
Browse files

fixes

parent 785c3502
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from . import qgt, solver
from . import solver
from . import qgt
from .linear_operator import LinearOperator
from .preconditioner import (
......
......@@ -23,9 +23,17 @@ from .qgt_jacobian_dense import QGTJacobianDense
from .qgt_jacobian_pytree import QGTJacobianPyTree
from .qgt_onthefly import QGTOnTheFly
from ..solver import cholesky, svd, LU, solve
from .. import solver as nk_solver_module
solvers = [cholesky, svd, LU, solve]
solvers = []
for solver in dir(nk_solver_module):
# only add solvers, not random
# useless things
if solver[:2] == "__":
continue
else:
solvers.append(getattr(nk_solver_module, solver))
def _is_dense_solver(solver: Any) -> bool:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment