bilby.compat.utils

Functions

array_module(arr)

Infer the array module (namespace) from the input argument.

copy_array(arr)

Return a copy of the passed array.

promote_to_array(args, xp[, skip])

Promote arguments to arrays using the specified array module.

xp_wrap(func[, no_xp])

A decorator that will figure out the array module from the input arguments and pass it to the function as the 'xp' keyword argument.

Exceptions

BackendNotImplementedError