coffee.backend package¶
Submodules¶
coffee.backend.backend module¶
Methods that wrap common computations.
- class coffee.backend.backend.Backend[source]¶
Bases:
object- get_backend(backend_name)[source]¶
Returns an instance of the specified backend class.
This function creates and returns an instance of the backend class specified by the backend_name argument. Currently supported backends are “numpy” and others can be added as needed.
- Parameters:
backend_name (str, optional) – The name of the backend for which an instance is to be created. Defaults to “numpy”.
- Raises:
ValueError – If the specified backend_name is not supported.
- Returns:
An instance of the specified backend class.
- Return type:
- class coffee.backend.backend.NumpyBackend[source]¶
Bases:
BackendBase