summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorsasha <sasha@localhost>2006-02-24 00:37:16 +0000
committersasha <sasha@localhost>2006-02-24 00:37:16 +0000
commitadc21734b3b1d5bfdf027c4966fba3bbece12468 (patch)
tree14a6f94fb857ab199bd1b1e8707651cf9f820443 /numpy/core/src/arrayobject.c
parent9f395ae6f261a879ef9311a0c0b7f5b7eec97693 (diff)
downloadnumpy-adc21734b3b1d5bfdf027c4966fba3bbece12468.tar.gz
added rint ufunc and ndarray.round
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index 3d11d42ac..afca2b618 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -2334,14 +2334,12 @@ typedef struct {
*floor,
*ceil,
*maximum,
- *minimum;
+ *minimum,
+ *rint;
} NumericOps;
-static NumericOps n_ops = {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL, NULL};
+static NumericOps n_ops; /* NB: static objects inlitialized to zero */
/* Dictionary can contain any of the numeric operations, by name.
Those not present will not be changed
@@ -2391,6 +2389,7 @@ PyArray_SetNumericOps(PyObject *dict)
SET(ceil);
SET(maximum);
SET(minimum);
+ SET(rint);
return 0;
}
@@ -2436,6 +2435,7 @@ PyArray_GetNumericOps(void)
GET(ceil);
GET(maximum);
GET(minimum);
+ GET(rint);
return dict;
fail: