Package topo :: Package transferfn :: Module optimized
[hide private]
[frames] | no frames]

Module optimized

source code

Output functions (see basic.py) and projection-level output functions (see projfn.py) written in C to optimize performance.

Requires the weave package; without it unoptimized versions are used.

Classes [hide private]
  CFPOutputFn
Type for an object that applies some operation (typically something like normalization) to all CFs in a CFProjection for which the specified mask (typically the activity at the destination of this projection) is nonzero.
  TransferFn
Function object to modify a matrix in place, e.g.
  IdentityTF
Identity function, returning its argument as-is.
  DivisiveNormalizeL1
TransferFn that divides an array by its L1 norm.
  DivisiveNormalizeL1_opt
TransferFn that divides an array by its L1 norm.
  CFPOF_DivisiveNormalizeL1_opt
Non-optimized version of CFPOF_DivisiveNormalizeL1_opt.
  CFPOF_DivisiveNormalizeL1
Non-optimized version of CFPOF_DivisiveNormalizeL1_opt.
Variables [hide private]
  c_header = '\n/* Declaration for interfacing to numpy floats *...
  __package__ = 'topo.transferfn'
  k = '__doc__'
  v = '\nOutput functions (see basic.py) and projection-level ou...
Variables Details [hide private]

c_header

Value:
'''
/* Declaration for interfacing to numpy floats */
typedef double npfloat;

/* For a given class cls and an attribute attr, defines a variable
   attr_offset containing the offset of that attribute in the class\'s
   __slots__ data structure. */
#define DECLARE_SLOT_OFFSET(attr,cls)   PyMemberDescrObject *attr ## _descr = (PyM\
...

v

Value:
'''
Output functions (see basic.py) and projection-level output functions
(see projfn.py) written in C to optimize performance.

Requires the weave package; without it unoptimized versions are used.
'''