From e916b9e44c1732fba94393056f80093a0e775134 Mon Sep 17 00:00:00 2001 From: Mark Wiebe Date: Mon, 17 Jan 2011 17:06:54 -0800 Subject: ENH: core: Change PyArray_CopyAnyInto and PyArray_MoveAnyInto to use the new iterator I also found that the tricky case of CopyAnyInto wasn't being triggered by the test suite, so added a new function ndarray.setasflat, which calls CopyAnyInto. --- numpy/matrixlib/tests/test_defmatrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/matrixlib/tests/test_defmatrix.py') diff --git a/numpy/matrixlib/tests/test_defmatrix.py b/numpy/matrixlib/tests/test_defmatrix.py index 65d79df0b..ccb68f0e7 100644 --- a/numpy/matrixlib/tests/test_defmatrix.py +++ b/numpy/matrixlib/tests/test_defmatrix.py @@ -263,7 +263,7 @@ class TestMatrixReturn(TestCase): 'searchsorted', 'setflags', 'setfield', 'sort', 'take', 'tofile', 'tolist', 'tostring', 'all', 'any', 'sum', 'argmax', 'argmin', 'min', 'max', 'mean', 'var', 'ptp', - 'prod', 'std', 'ctypes', 'itemset' + 'prod', 'std', 'ctypes', 'itemset', 'setasflat' ] for attrib in dir(a): if attrib.startswith('_') or attrib in excluded_methods: -- cgit v1.2.1