skfdiff.core.backends package

Submodules

skfdiff.core.backends.base_backend module

class skfdiff.core.backends.base_backend.Backend(system: PDESys, grid_builder: GridBuilder, custom_functions: list = _Nothing.NOTHING)[source]

Bases: ABC

skfdiff.core.backends.base_backend.get_backend(name)[source]

get a backend by its name

Parameters:

name (name {str} -- backend) –

Raises:

NotImplementedError -- raised if the backend is not available.

Returns:

Backend – the requested backend

skfdiff.core.backends.base_backend.register_backend(CustomBackend)[source]

skfdiff.core.backends.numba_backend module

skfdiff.core.backends.numpy_backend module

class skfdiff.core.backends.numpy_backend.CseLambdify(args, expr, optimizations=None, order='none', modules='numpy')[source]

Bases: object

class skfdiff.core.backends.numpy_backend.NumpyBackend(system: PDESys, grid_builder: GridBuilder, custom_functions: list = _Nothing.NOTHING, cse: bool = True, optimizations: str = 'basic')[source]

Bases: Backend

F(fields, t=0)[source]
J(fields, t=0)[source]
compute_F_vector(t, unks, pars, coords, sizes)[source]
compute_jacobian_coordinates(*sizes)[source]
compute_jacobian_values(t, unks, pars, coords, sizes)[source]
name = 'numpy'
skfdiff.core.backends.numpy_backend.np_Heaviside(a)[source]
skfdiff.core.backends.numpy_backend.np_Max(args)[source]
skfdiff.core.backends.numpy_backend.np_Min(args)[source]
skfdiff.core.backends.numpy_backend.np_depvar_printer(unk)[source]
skfdiff.core.backends.numpy_backend.np_ivar_printer(coord)[source]

Module contents