summaryrefslogtreecommitdiff
path: root/numpy/numarray/_capi.c
Commit message (Collapse)AuthorAgeFilesLines
* DEP: Remove deprecated modules numarray and oldnumeric.Charles Harris2013-09-231-3441/+0
| | | | | | They were deprecated in 1.8 and scheduled for removal in 1.9. Closes #3637.
* FIX: remove unused variables and add castsLars Buitinck2013-08-271-1/+1
| | | | Makes the build complete with fewer warnings.
* MAINT: Remove outdated version checks.Charles Harris2013-07-111-4/+0
| | | | | | | | | | Because Numpy 1.8.0 will no longer supports Python versions < 2.6 we no longer need to check for that and can also remove the code that is specific to those earlier versions. To make this a bit safer, the toplevel setup.py file now contains a check of the Python version number and raises an error when run by an unsupported version.
* Use PyMODINIT_FUNC and update docs accordingly.cgohlke2012-09-021-1/+1
| | | | See https://github.com/scipy/scipy/pull/279
* Rename PyArray_RequireWriteable to PyArray_FailUnlessWriteableNathaniel J. Smith2012-05-221-3/+3
| | | | | | Also clean up its API slightly so that the caller passes in a name describing the array being checked which is used to generate an error message, rather than writing an error message from scratch.
* Funnel all assignments to PyArrayObject->base through a single pointNathaniel J. Smith2012-05-151-3/+1
| | | | | | | | | | | | | | | | | | | | | | | This patch removes all direct assignments of non-NULL values to the 'base' field on PyArrayObjects. A new utility function was created to set up UPDATEIFCOPY arrays, and all assignments to 'base' were adjusted to use either PyArray_SetBaseObject or the new PyArray_SetUpdateIfCopyBase. One advantage of this is that it produces more consistent error handling. This error handling revealed a bug in the nditer code, which this patch does *not* yet fix. The bug is that npyiter_new_temp_array sometimes (when dealing with reversed axes) creates an array and then returns a view onto it. But, npyiter_allocate_arrays assumes that the array returned by npyiter_new_temp_array can have UPDATEIFCOPY set, which requires reassigning its 'base' field. Previously, this meant that the temporary array leaked. Now, it produces a ValueError. This code path doesn't seem to actually be hit very often; only one of the nditer tests fails because of the change. See numpy/core/tests/test_nditer.py:test_iter_array_cast_buggy
* Consolidate all array writeability checking in new PyArray_RequireWriteableNathaniel J. Smith2012-05-151-10/+8
| | | | | | | | | This is mostly a code cleanup, but it does have a user-visible effect in that attempting to write to a unwriteable array now consistently raises ValueError. (It used to randomly raise either ValueError or RuntimeError.) Passes numpy.test("full").
* DEP: Update all the '#define NPY_NO_DEPRECATED_API' instances to beMark Wiebe2012-04-061-1/+1
| | | | versioned
* UPDATE: Replace macros in old_defines.h by new.Charles Harris2012-02-041-2/+2
| | | | | With the exception of the numarray fixups these were all instances that were results of code generation.
* ENH: core: Rename PyArray_SetBase to PyArray_SetBaseObject to be more clearMark Wiebe2011-07-221-1/+1
|
* ENH: core: More cleanups removing direct PyArrayObject field accessMark Wiebe2011-07-191-106/+106
|
* ENH: core: Progress getting NumPy building without direct field accessMark Wiebe2011-07-191-13/+19
|
* 3K: numarray: Python3 fixes in _capi.cPauli Virtanen2010-07-171-20/+24
| | | | Thanks to Christoph Gohlke.
* BUG: core: use PyCapsule objects only on Python >= 3.0, stay with PyCObjects ↵Pauli Virtanen2010-07-171-1/+1
| | | | on Python 2.x
* BUG: Fix problem with numarray _capi.c and python 2.7.Charles Harris2010-05-241-2/+6
|
* ENH, BUG: PyCObject will be deprecated in python 2.7. So use the NpyCapsuleCharles Harris2010-05-031-1/+1
| | | | | | | compatibility functions in npy_3kcompat.h to replace the current calls. This gets rid of a number of version checks and is easier to maintain. Fix bug that was present in the ufunc _loop1d_list_free destructor in the python3k case.
* ENH: get rid of #warning directives, either by fixing the issue or changing ↵Pauli Virtanen2010-04-041-3/+3
| | | | them to comments
* ENH: Try to fix numarray _capi.c for Python >= 3.1. Needs testing that I am notCharles Harris2010-02-251-10/+40
| | | | in a position to do.
* BUG: Replace deprecated PyCObject by PyCapsule for Python >= 3.1.Charles Harris2010-02-231-0/+4
|
* BUG: fix numarray._capi compilationPauli Virtanen2010-02-211-1/+1
|
* 3K: numarray: replace buffer APIs by dummy+error. Some ob_types.Pauli Virtanen2009-12-061-4/+31
|
* ENH: Fix some more uninitialized vars.David Cournapeau2009-09-161-18/+52
|
* Reindent and cleanup whitespace.Charles Harris2009-06-031-2316/+2314
|
* More signed/unsigned comp fixes.David Cournapeau2009-03-091-6/+6
|
* More unused vars tagged.David Cournapeau2008-10-081-15/+16
|
* Fix building on freebsd [patch by Joe Peterson].Stefan van der Walt2007-12-141-3/+7
|
* #513: fix up include of fenv.c in numarray for cygwincookedm2007-05-151-10/+7
|
* Change defined(linux) to defined(__GLIBC__)Travis Oliphant2007-04-061-2/+2
|
* Include fenv.h the second time for CYGWIN. Change a few defines.Travis Oliphant2007-04-051-3/+2
|
* Added patch in ticket #458 for compilation on Cygwin.Travis Oliphant2007-03-261-1/+5
|
* Fix include directory for fenv.cTravis Oliphant2007-01-251-1/+1
|
* Fix location of fenv.h file for CYGWIN to correct compilation of NumPy on CYGWINTravis Oliphant2007-01-241-1/+1
|
* Fix warnings found by Intel compiler due to unused variables that were set. ↵Travis Oliphant2006-12-021-5/+3
| | | | Make ones work for compound types.
* Python 2.5 fixes: replace int with Py_ssize_t where appropiatecookedm2006-09-281-1/+1
|
* Fix warning...Travis Oliphant2006-08-251-1/+2
|
* Fix NA_NewAllFromBuffer when shape is givenTravis Oliphant2006-08-241-21/+30
|
* Apply npy_ and NPY_ prefixes to all C-API names that don't already have ↵Travis Oliphant2006-07-081-11/+11
| | | | PyArray_ prefixes.
* Fix to NA_OptionalOutputArray so that resulting array is a copy of the ↵chanley2006-07-061-1/+2
| | | | master when the specified output array is NULL or None, i.e. omitted. flags. Submitted on behalf of jmiller.
* Undo move to numpy_numarray.Travis Oliphant2006-06-261-1/+1
|
* Renamed numpy/numarray/numpy directory to numpy/numarray/numpy_numarray to ↵chanley2006-06-261-1/+1
| | | | be consistent with setup file and usage instructions. Modified _capi.c to use the new directory name.
* Fixed build problem with Solaris compilers. Needed to remove return values ↵chanley2006-06-201-3/+3
| | | | from void functions in numarray c-api.
* One more name change.Travis Oliphant2006-06-201-1/+1
|
* Fix-up C-API support for numarrayTravis Oliphant2006-06-201-76/+79
|
* Fix reference-count problem in z **= 1 and more numarray compatiblity fixes.Travis Oliphant2006-06-201-64/+275
|
* Adding numarray C-APITravis Oliphant2006-06-201-1/+1
|
* Draft of libnumarray C-API.Travis Oliphant2006-06-201-2564/+1554
|
* Adding numarray c-api compatibility.Travis Oliphant2006-06-191-0/+4124