numpy  2.0.0
src/umath/funcs.inc.src File Reference
#include "npy_pycompat.h"

Defines

#define NPY_NO_DEPRECATED_API   NPY_API_VERSION

Functions

static PyObject * Py_square (PyObject *o)
static PyObject * Py_get_one (PyObject *NPY_UNUSED(o))
static PyObject * Py_reciprocal (PyObject *o)
static PyObject * npy_ObjectPower (PyObject *x, PyObject *y)
static PyObject *npy_Object Kind (PyObject *i1, PyObject *i2)
static PyObject * npy_ObjectLogicalOr (PyObject *i1, PyObject *i2)
static PyObject * npy_ObjectLogicalAnd (PyObject *i1, PyObject *i2)
static PyObject * npy_ObjectLogicalNot (PyObject *i1)
static void nc_neg c (@ctype @*a,@ctype @*r)
static void nc_pow c (@ctype @*a,@ctype @*b,@ctype @*r)

Define Documentation

#define NPY_NO_DEPRECATED_API   NPY_API_VERSION
This file is for the definitions of the non-c99 functions used in ufuncs. All the complex ufuncs are defined here along with a smattering of real and object functions.

Function Documentation

static void nc_tanh c ( @ctype @*  a,
@ctype @*  r 
) [static]

* COMPLEX FUNCTIONS **

Don't pass structures between functions (only pointers) because how structures are passed is compiler dependent and could cause segfaults if umath_ufunc_object.inc is compiled with a different compiler than an extension that makes use of the UFUNC API
begin repeat <blockquote> #ctype = npy_cfloat, npy_cdouble, npy_clongdouble# #ftype = npy_float, npy_double, npy_longdouble# c = f, ,l#</blockquote>
static void nc_pow c ( @ctype @*  a,
@ctype @*  b,
@ctype @*  r 
) [static]

References c, and npy_casin().

static PyObject* npy_Object Kind ( PyObject *  i1,
PyObject *  i2 
) [static]
begin repeat
Kind = Max, Min# OP = Py_GE, Py_LE#
static PyObject* npy_ObjectLogicalAnd ( PyObject *  i1,
PyObject *  i2 
) [static]
Emulates Python's 'a and b' behavior
static PyObject* npy_ObjectLogicalNot ( PyObject *  i1) [static]
Emulates Python's 'not b' behavior
static PyObject* npy_ObjectLogicalOr ( PyObject *  i1,
PyObject *  i2 
) [static]
end repeat*
Emulates Python's 'a or b' behavior
static PyObject* npy_ObjectPower ( PyObject *  x,
PyObject *  y 
) [static]
Define numpy version of PyNumber_Power as binary function.
static PyObject* Py_get_one ( PyObject *  NPY_UNUSEDo) [static]
static PyObject* Py_reciprocal ( PyObject *  o) [static]
static PyObject* Py_square ( PyObject *  o) [static]

* PYTHON OBJECT FUNCTIONS **