npinto/bangreadout — pull request #1 by poilvert (2012-06-10 23:48:54+00:00)
Title: ENH: prange-enabled first draft of a zero mean unit variance utility

@npinto

simple Cython, prange-enabled zero mean unit variance function.

Build :

>>> python setup.py build_ext --inplace

Use :

>>> from fast_zmuv import zmuv
>>> out = zmuv(in)

``in`` is supposed to be a 2D tensor (shape ``[n_samples, n_features]``) and the code performs a zero-mean unit-variance operation on the last axis. I tested it against numpy to make sure it works.