Skip to content

Commit

Permalink
UPD: Add NPY_NO_DEPRECATED_API to some more files.
Browse files Browse the repository at this point in the history
_dotblas needs more work to remove direct access to ndarray internals.
  • Loading branch information
charris committed Apr 7, 2012
1 parent c993797 commit c5eee11
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
10 changes: 8 additions & 2 deletions numpy/core/blasdot/_dotblas.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
static char module_doc[] =
"This module provides a BLAS optimized\nmatrix multiply, inner product and dot for numpy arrays";
/*
* This module provides a BLAS optimized\nmatrix multiply,
* inner product and dot for numpy arrays
*/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION

#include "Python.h"
#include "npy_config.h"
Expand All @@ -17,6 +20,9 @@ static char module_doc[] =
#define Py_SIZE(o) (((PyVarObject*)(o))->ob_size)
#endif

static char module_doc[] =
"This module provides a BLAS optimized\nmatrix multiply, inner product and dot for numpy arrays";

static PyArray_DotFunc *oldFunctions[NPY_NTYPES];

static void
Expand Down
1 change: 1 addition & 0 deletions numpy/core/src/multiarray/nditer_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
* See LICENSE.txt for the license.
*/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION

/* Indicate that this .c file is allowed to include the header */
#define NPY_ITERATOR_IMPLEMENTATION_CODE
Expand Down
1 change: 1 addition & 0 deletions numpy/core/src/multiarray/nditer_constr.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
* See LICENSE.txt for the license.
*/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION

/* Indicate that this .c file is allowed to include the header */
#define NPY_ITERATOR_IMPLEMENTATION_CODE
Expand Down
1 change: 1 addition & 0 deletions numpy/random/mtrand/initarray.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
* http://www.math.keio.ac.jp/matumoto/emt.html
* email: [email protected]
*/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION

#include "initarray.h"

Expand Down

0 comments on commit c5eee11

Please sign in to comment.