DynamicArrayVariable class¶
(Shortest import: from brian2.core.variables import DynamicArrayVariable)
-
class
brian2.core.variables.DynamicArrayVariable(name, owner, size, device, dimensions=Dimension(), dtype=None, constant=False, needs_reference_update=False, resize_along_first=False, scalar=False, read_only=False, unique=False)[source]¶ Bases:
brian2.core.variables.ArrayVariableAn object providing information about a model variable stored in a dynamic array (used in
Synapses). Most of the timeVariables.add_dynamic_arrayshould be used instead of instantiating this class directly.Attributes
dimensionsndimThe number of dimensions needs_reference_updateWhether this variable needs an update of the reference to the underlying data whenever it is passed to a code object resize_along_firstWhether this array will be only resized along the first dimension Methods
resize(new_size)Resize the dynamic array. Details
-
dimensions¶
-
ndim¶ The number of dimensions
-
needs_reference_update¶ Whether this variable needs an update of the reference to the underlying data whenever it is passed to a code object
-
resize_along_first¶ Whether this array will be only resized along the first dimension
-