GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
pygenn.model_preprocessor.Variable Class Reference

Class holding information about GeNN variables. More...

Inheritance diagram for pygenn.model_preprocessor.Variable:

Public Member Functions

def __init__ (self, variable_name, variable_type, values=None)
 Init Variable. More...
 
def set_values (self, values)
 Set Variable's values. More...
 
def __init__ (self, variable_name, variable_type, values=None)
 Init Variable. More...
 
def set_values (self, values)
 Set Variable's values. More...
 

Public Attributes

 name
 
 type
 
 view
 
 needs_allocation
 
 init_required
 
 init_val
 
 values
 

Detailed Description

Class holding information about GeNN variables.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def pygenn.model_preprocessor.Variable.__init__ (   self,
  variable_name,
  variable_type,
  values = None 
)

Init Variable.

Parameters
variable_namestring name of the variable
variable_typestring type of the variable
valuesiterable, single value or VarInit instance

◆ __init__() [2/2]

def pygenn.model_preprocessor.Variable.__init__ (   self,
  variable_name,
  variable_type,
  values = None 
)

Init Variable.

Parameters
variable_namestring name of the variable
variable_typestring type of the variable
valuesiterable, single value or VarInit instance

Member Function Documentation

◆ set_values() [1/2]

def pygenn.model_preprocessor.Variable.set_values (   self,
  values 
)

Set Variable's values.

Parameters
valuesiterable, single value or VarInit instance

◆ set_values() [2/2]

def pygenn.model_preprocessor.Variable.set_values (   self,
  values 
)

Set Variable's values.

Parameters
valuesiterable, single value or VarInit instance

Member Data Documentation

◆ init_required

pygenn.model_preprocessor.Variable.init_required

◆ init_val

pygenn.model_preprocessor.Variable.init_val

◆ name

pygenn.model_preprocessor.Variable.name

◆ needs_allocation

pygenn.model_preprocessor.Variable.needs_allocation

◆ type

pygenn.model_preprocessor.Variable.type

◆ values

pygenn.model_preprocessor.Variable.values

◆ view

pygenn.model_preprocessor.Variable.view

The documentation for this class was generated from the following file: