scimba_torch.physical_models.ode.simple_ode¶
Implementation of a simple 1D ODE.
Classes
|
Implementation of a 1D simple ODE. |
- class SimpleODE(space, init, **kwargs)[source]¶
Bases:
AbstractODEImplementation of a 1D simple ODE.
\[\begin{split}\frac{du}{dt} = \\mu u, \\quad t \\in (0, T),\end{split}\]with an initial condition given by the function init.
- Parameters:
space (
AbstractApproxSpace) – The approximation space for the probleminit (
Callable) – Callable for the initial condition**kwargs – Additional keyword arguments
- time_operator(w, t, mu)[source]¶
Apply the ODE operator.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensormu (
LabelTensor) – Parameter tensor
- Return type:
Tensor|tuple[Tensor,...]- Returns:
Operator tensor
- functional_operator(func, t, mu, theta)[source]¶
Compute the functional operator.
- Parameters:
func (
VarArgCallable) – Callable representing the functiont (
Tensor) – Temporal coordinate tensormu (
Tensor) – Parameter tensortheta (
Tensor) – Additional parameters tensor
- Return type:
Tensor- Returns:
Functional operator tensor