feat(solution): implement base class for solution
@@ -356,7 +356,7 @@ class BaseSolver(ABC):
A solution object which can be called.
To evaluate the solution on certain points,
you should pass the coordinates vector(s) to the returned solution.
- :rtype: callable
+ :rtype: BaseSolution
"""
pass
@@ -435,3 +435,8 @@ class BaseSolver(ABC):
return 0.0
+class BaseSolution(ABC):
+ @abstractmethod
+ def __call__(self, *coords, to_numpy=False):
+ pass
+
