get_dtype function

(Shortest import: from import get_dtype), dtype=None)[source]

Helper function to interpret the dtype keyword argument in NeuronGroup etc.


equation : SingleEquation

The equation for which a dtype should be returned

dtype : dtype or dict, optional

Either the dtype to be used as a default dtype for all float variables (instead of the core.default_float_dtype preference) or a dictionary stating the dtype for some variables; all other variables will use the preference default


d : dtype

The dtype for the variable defined in equation