Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | BUG: Remove pointer cast from the PyArray_BYTES macro. | Frederic | 2012-11-06 | 1 | -1/+1 |
| | | | | | | | This fixes a compilation problem encountered with numpy 1.7 when the PyArray_BYTES macro was used as an lvalue in Theano. The macro worked as an lvalue in 1.6 and in 1.7 only the struct name was changed, which makes the problem a bit of a mystery, but Theano compiles with this fix. | ||||
* | Merge pull request #2702 from seberg/issue2700 | Stefan van der Walt | 2012-11-06 | 2 | -95/+46 |
|\ | | | | | BUG: Reshape of 0-sized arrays failed to work without copy. | ||||
| * | MNT: Remove _check_zeros from NewShape | Sebastian Berg | 2012-11-01 | 1 | -92/+36 |
| | | | | | | | | | | _attempt_nocopy_reshape already handles this case fine. The only purpose would be to slightly speed up this special case. | ||||
| * | BUG: Reshape of 0-sized arrays failed to work without copy | Sebastian Berg | 2012-11-01 | 2 | -5/+12 |
| | | | | | | | | | | This also adds a check for order=Keeporder which is not supported. "closes Issue #2700" | ||||
* | | Merge pull request #483 from astrofrog/fix-masked-getitem | njsmith | 2012-10-31 | 2 | -10/+8 |
|\ \ | |/ |/| | When accessing MaskedArray rows, always return an mvoid object | ||||
| * | Fixed failing tests | Thomas Robitaille | 2012-10-11 | 1 | -4/+4 |
| | | |||||
| * | When accessing MaskedArray rows, always return an mvoid object | Thomas Robitaille | 2012-10-11 | 1 | -6/+4 |
| | | |||||
* | | Merge pull request #2694 from seberg/cflags2 | njsmith | 2012-10-25 | 13 | -177/+154 |
|\ \ | | | | | | | ENH: Make 1-dimensional axes not matter for contiguous flags | ||||
| * | | MNT: Remove unnecessary special cases in _UpdateContiguousFlags | Sebastian Berg | 2012-10-23 | 1 | -16/+0 |
| | | | | | | | | | | | | | | | Remove unnecessary special cases for 0 and 1-d arrays as suggested by njsmith. | ||||
| * | | MNT: Minor cleanups in comments and lowlevel_strided_loops. | Sebastian Berg | 2012-10-22 | 3 | -9/+10 |
| | | | |||||
| * | | TST: Check if contiguous flags are correct in various situations | Sebastian Berg | 2012-10-22 | 1 | -0/+32 |
| | | | |||||
| * | | BUG: Fix bug with size 1-dims in CreateSortedStridePerm | Sebastian Berg | 2012-10-21 | 5 | -20/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | This reverts changes done to CreateSortedStridePerm in commit 9194b3af. The problem is that it would fail for 3x1x3 Fortran order array for example. And special handleing seems unnecessary at least after 1-dim axis not mattering for contiguous flags. This "closes Issue #434" | ||||
| * | | MNT: Remove unnecessary stride/flags cleanup. | Sebastian Berg | 2012-10-21 | 2 | -40/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | This code is unnecessary with changed flags behavior. It would only serve the purpose of making strides look nicer for the user. The UpdateFlags was only required since 1-dim axis being removed might change contiguous flags. But this cannot happen now. | ||||
| * | | API: ctors changed so that contiguous flags ignore 1-dim axis | Sebastian Berg | 2012-10-21 | 1 | -10/+30 |
| | | | | | | | | | | | | | | | | | | This changes ctors.c so that new arrays are created in such a way that they are both C- and F-contiguous if possible. Also fixes some corner cases for 0-sized arrays. | ||||
| * | | API: Change Flags Updateing to allow C-/F-contiguous arrays | Sebastian Berg | 2012-10-21 | 1 | -62/+45 |
| | | | | | | | | | | | | | | | This changes UpdateFlags to ignore 1-dimensional axis when setting C-/F-contiguous flags. Updates both flags always now. | ||||
| * | | TST: Test order='F' combined with C/F-contiguous arrays. | Sebastian Berg | 2012-10-21 | 1 | -0/+10 |
| | | | | | | | | | | | | | | | | | | Both ravel and asarray misbehaved on 1D (or more generally C and F-contiguous arrays if order='F' was specified. Speed test for .tostring seems not feasably. | ||||
| * | | BUG: Replace ISFORTRAN by IS_F_CONTIGUOUS. | Sebastian Berg | 2012-10-21 | 3 | -6/+6 |
| | | | | | | | | | | | | | | | | | | In a few places ISFORTRAN was used to check for f-contiguouity. This is incorrect, since ISFORTRAN never evaluated to True if the array was also c-contiguous. | ||||
| * | | API: Change isfortran to f-contig and not c-contig | Sebastian Berg | 2012-10-21 | 2 | -5/+6 |
| | | | | | | | | | | | | | | | | | | This was a check for 1-d arrays, this is the generalization to higher dimension if we allow higher dimensioal arrays to be both f- and c-contiguous. | ||||
| * | | TST: Update ctypes tests for changed contiguous flags setting. | Sebastian Berg | 2012-10-21 | 1 | -2/+2 |
| | | | | | | | | | | | | This is unrelated to what is actually tested here. | ||||
| * | | ENH: Do not rely on clean strides for loops. | Sebastian Berg | 2012-10-21 | 1 | -28/+18 |
| |/ | | | | | | | | | | | In lowlevel_strided_loops.h, do not rely that the strides for contiguous arrays are set nicely since they can be considered not important if an axis dimensions is zero. | ||||
* | | Merge pull request #482 from ContinuumIO/void_scalar_hash | Travis E. Oliphant | 2012-10-21 | 2 | -2/+45 |
|\ \ | |/ |/| | BUG: Fix void_scalar hash function to use the elements of the record in ... | ||||
| * | BUG: Ensure that writeable records are not hashed. | Travis E. Oliphant | 2012-10-13 | 2 | -0/+12 |
| | | |||||
| * | TST: Add one more test. | Travis E. Oliphant | 2012-10-09 | 1 | -0/+2 |
| | | |||||
| * | BUG: Fix void_scalar hash function to use the elements of the record in the ↵ | Travis E. Oliphant | 2012-10-09 | 2 | -2/+31 |
| | | | | | | | | hash computation just like the tuple hash | ||||
* | | Merge pull request #480 from matthew-brett/fix-distutils-log-warning | Travis E. Oliphant | 2012-10-09 | 1 | -2/+0 |
|\ \ | | | | | | | FIX: remove log line causing warning from disutils | ||||
| * | | FIX: remove log line causing warning from disutils | Matthew Brett | 2012-10-06 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using numpy.distutils through easy_install caused a RuntimeWarning because of a failed import of numpy.distutils. Discussion here: http://thread.gmane.org/gmane.comp.python.numeric.general/51719 The conclusion seemed to be that the safest fix is to remove the one line of logging in the relevant callback. Thanks to Ralf Gommers for the suggestion. | ||||
* | | | Merge pull request #476 from njsmith/copy-memory-order | Travis E. Oliphant | 2012-10-09 | 3 | -3/+34 |
|\ \ \ | | | | | | | | | [FIX] preserve memory order in np.copy() | ||||
| * | | | [FIX] preserve memory order in np.copy() | Nathaniel J. Smith | 2012-10-01 | 3 | -3/+34 |
| | | | | | | | | | | | | | | | | | | | | This switches us back to the behaviour seen in numpy 1.6 and earlier, which it turns out that scikit-learn (and probably others) relied on. | ||||
* | | | | Merge pull request #466 from seberg/issue465 | Travis E. Oliphant | 2012-10-09 | 2 | -3/+18 |
|\ \ \ \ | | | | | | | | | | | BUG: Fill correct strides for ndmin in array creation | ||||
| * | | | | TST: Test that ndmin honors requested and original order. | Sebastian Berg | 2012-09-29 | 1 | -0/+7 |
| | | | | | |||||
| * | | | | BUG: Fill correct strides for ndmin in array creation | Sebastian Berg | 2012-09-29 | 1 | -3/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Closes "Issue #465", strides need to be set according to the requested contiguous flags. | ||||
* | | | | | Merge pull request #454 from seberg/issue380 | Travis E. Oliphant | 2012-10-09 | 2 | -4/+10 |
|\ \ \ \ \ | | | | | | | | | | | | | FIX: Issue #380 | ||||
| * | | | | | TST: reshaping of zero strided array (Issue #380) | Sebastian Berg | 2012-09-24 | 1 | -0/+6 |
| | | | | | | |||||
| * | | | | | BUG: strides should only be changed if dimensions==1 | Sebastian Berg | 2012-09-24 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | This fixes Issue #380". | ||||
* | | | | | | Merge pull request #444 from 87/fix_array_iface | Travis E. Oliphant | 2012-10-09 | 3 | -102/+183 |
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | Fix for issue #291 | ||||
| * | | | | | TST: Add more tests. | Han Genuit | 2012-09-30 | 1 | -3/+14 |
| | | | | | | |||||
| * | | | | | BUG: Disallow shapesize > 1 when coercing scalar to array | Han Genuit | 2012-09-30 | 1 | -0/+7 |
| | | | | | | |||||
| * | | | | | ENH: Assume object is scalar if no shape and data attribute are given | Han Genuit | 2012-09-30 | 1 | -19/+24 |
| | | | | | | |||||
| * | | | | | BUG: Handle scalars correctly. | Han Genuit | 2012-09-30 | 1 | -2/+2 |
| | | | | | | |||||
| * | | | | | BUG: Fixes for Python 3.x | Han Genuit | 2012-09-20 | 2 | -3/+18 |
| | | | | | | |||||
| * | | | | | BUG: Make sure empty shapes are disallowed when data is specified | Han Genuit | 2012-09-16 | 1 | -0/+10 |
| | | | | | | |||||
| * | | | | | TST: Add test for special case in array interface | Han Genuit | 2012-09-16 | 1 | -0/+14 |
| | | | | | | |||||
| * | | | | | BUG: Make shape check for special case a bit stricter | Han Genuit | 2012-09-16 | 1 | -2/+2 |
| | | | | | | |||||
| * | | | | | ENH: Allow objects to use the array interface without specifying data | Han Genuit | 2012-09-16 | 1 | -105/+124 |
| | | | | | | |||||
* | | | | | | BUG: fix in-place build. | David Cournapeau | 2012-10-09 | 1 | -1/+1 |
| | | | | | | |||||
* | | | | | | inplace passes tests | John Salvatier | 2012-10-08 | 2 | -4/+5 |
| | | | | | | |||||
* | | | | | | fixed tests | John Salvatier | 2012-10-08 | 2 | -8/+9 |
| | | | | | | |||||
* | | | | | | added initial mapiter tests | John Salvatier | 2012-10-08 | 2 | -0/+149 |
| | | | | | | |||||
* | | | | | | eliminated oned and fancy arguments to MapIterArray | John Salvatier | 2012-10-08 | 1 | -6/+13 |
| | | | | | | |||||
* | | | | | | changed error handling for clarity | John Salvatier | 2012-10-08 | 1 | -3/+5 |
| | | | | | |