devices package

Package providing the “devices” infrastructure.

device module

Module containing the Device base class as well as the RuntimeDevice implementation and some helper functions to access/set devices.

Exported members: Device, RuntimeDevice, get_device(), set_device(), all_devices, restore_device, device

Classes

CurrentDeviceProxy Method proxy for access to the currently active device
Device() Base Device object.
Dummy Dummy object
RuntimeDevice() The default device used in Brian, state variables are stored as numpy arrays in memory.

Functions

auto_target() Automatically chose a code generation target (invoked when the codegen.target preference is set to 'auto'.
get_default_codeobject_class([pref]) Returns the default CodeObject class from the preferences.
get_device() Gets the actve Device object
restore_device()
set_device(device) Sets the active Device object

Objects

active_device The default device used in Brian, state variables are stored as numpy arrays in memory.
device Method proxy for access to the currently active device
runtime_device The default device used in Brian, state variables are stored as numpy arrays in memory.