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 – The floating data type.
int – The integer data type.
bool – 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’.