brainpy.math.DictVar#

class brainpy.math.DictVar(*args, **kwargs)[source]#

A dict variable, in which its element can be changed during JIT compilation.

It is a variable, which is similar to Variable.

Note

The element must be a numerical number, like bool, int, float, jax.Array, numpy.ndarray, Array.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

clear()

copy()

get(*args, **kwargs)

has_key(key)

items()

keys()

pop(*args, **kwargs)

update(*args, **kwargs)

rtype:

_dyn_dict

values()

Attributes

value