odatse.solver._solver module

class odatse.solver._solver.SolverBase(info: Info)[source]

Bases: object

Abstract base class for solvers in the 2DMAT software.

Initialize the solver with the given information.

Parameters:

info (Info) – Information object containing configuration details.

abstract __init__(info: Info) None[source]

Initialize the solver with the given information.

Parameters:

info (Info) – Information object containing configuration details.

abstract evaluate(x: ndarray, arg: Tuple = (), nprocs: int = 1, nthreads: int = 1) None[source]

Evaluate the solver with the given parameters.

Parameters:
  • x (np.ndarray) – Input data array.

  • arg (Tuple, optional) – Additional arguments for evaluation. Defaults to ().

  • nprocs (nt, optional) – Number of processes to use. Defaults to 1.

  • nthreads (int, optional) – Number of threads to use. Defaults to 1.

Raises:

NotImplementedError – This method should be implemented by subclasses.

property name: str

Get the name of the solver.

Returns:

The name of the solver.

Return type:

str