Commit Graph

6 Commits

Author SHA1 Message Date
Lars Buitinck 37c1d092f8 COSMIT shut up the build by calling np.import_array in Cython modules
$(make in 2>&1 | wc -l) down from 706 to 517.

Took the liberty of modernizing some of the Cython code while I was at it.
2013-01-10 18:00:21 +01:00
Sebastian Berg 1a83c16b2b FIX: Do not rely on strides for contiguous arrays
When an array is contiguous in memory but has `shape[dim] == 1`, then
its `strides[dim]` is not really used, so it can be considered arbitrary
even if the array is contiguous. This is generally true for 0-sized arrays.

If there is no chance of 0-sized (or 1-sized and 1-dimensioal) arrays, then
this code is perfectly correct in current numpy. But its a dangerous
design choice and it would be nice to be able to change numpy at some point.
2012-12-10 16:33:55 +01:00
Peter Prettenhofer b4aa308f12 cythonized sgd files 2012-03-19 08:47:51 +01:00
Peter Prettenhofer aef85ba3cf cythonized 2012-03-07 21:18:42 +01:00
Peter Prettenhofer ef6e825d49 re-cythonized 2012-03-07 20:13:11 +01:00
Peter Prettenhofer 7fcb2dbb3e moved WeightVector und SequentialDataset into seperate modules. 2012-03-07 20:09:05 +01:00