set#
- class brainpy.math.set(mode=None, membrane_scaling=None, dt=None, x64=None, complex_=None, float_=None, int_=None, bool_=None, bp_object_as_pytree=None, numpy_func_return=None)[source]#
Set the default computation environment.
- Parameters:
mode (
Mode) – The computing mode.membrane_scaling (
Scaling) – The numerical membrane_scaling.dt (
float) – The numerical integration precision.x64 (
bool) – Enable x64 computation.complex_ (
type) – The complex data type.float_ (
type) – The floating data type.int_ (
type) – The integer data type.bool_ (
type) – The bool data type.bp_object_as_pytree (
bool) – Whether to register brainpy object as pytree.numpy_func_return (
str) – The array to return in all numpy functions. Support ‘bp_array’ and ‘jax_array’.