function
function¶
import tensorwaves.function
Express mathematical expressions in terms of computational functions.
- class ParametrizedBackendFunction(function: Callable[[...], ndarray], argument_order: Iterable[str], parameters: Mapping[str, Union[complex, float]])[source]¶
Bases:
tensorwaves.interface.ParametrizedFunction
Implements
ParametrizedFunction
for a specific computational back-end.
- class PositionalArgumentFunction(function: Callable[[...], ndarray], argument_order: Iterable[str])[source]¶
Bases:
tensorwaves.interface.Function
Wrapper around a function with positional arguments.
This class provides a
__call__()
that can take aDataSample
for a function with positional arguments. Itsargument_order
redirect the keys in theDataSample
to the argument positions in its underlyingfunction
.- __eq__(other)¶
Method generated by attrs for class PositionalArgumentFunction.
- get_source_code(function: Function) str [source]¶
Get the backend source code used to compile this function.
Submodules and Subpackages