NumpyCodeObject class¶
(Shortest import: from brian2 import NumpyCodeObject)
-
class
brian2.codegen.runtime.numpy_rt.numpy_rt.
NumpyCodeObject
(owner, code, variables, variable_indices, template_name, template_source, compiler_kwds, name='numpy_code_object*')[source]¶ Bases:
brian2.codegen.codeobject.CodeObject
Execute code using Numpy
Default for Brian because it works on all platforms.
Methods
compile_block
(block)is_available
()Whether this target for code generation is available. run_block
(block)update_namespace
()Update the namespace for this timestep. variables_to_namespace
()Details
-
classmethod
is_available
()[source]¶ Whether this target for code generation is available. Should use a minimal example to check whether code generation works in general.
-
classmethod