4 Oct 16:56
PyArray_New bug?
From: Ravi <lists_ravi <at> lavabit.com>
Subject: PyArray_New bug?
Newsgroups: gmane.comp.python.numeric.general
Date: 2008-10-04 14:56:04 GMT
Subject: PyArray_New bug?
Newsgroups: gmane.comp.python.numeric.general
Date: 2008-10-04 14:56:04 GMT
Hi,
PyArray_New seems to return a fortran contiguous array regardless of the
requested array type. I am using numpy version 1.1.1.
PyObject *obj = PyArray_New( &PyArray_Type, 2, dims, /*whatever*/, NULL,
NULL, 0, NPY_CARRAY, NULL );
PyObject *obj = PyArray_New( &PyArray_Type, 2, dims, /*whatever*/, NULL,
NULL, 0, NPY_FARRAY, NULL );
Both the above return a array who PyArray_ISFORTRAN( obj ) succeeds. I can
verify this by checking bits 0 and 1 (LSB is bit 0) of PyArray_FLAGS.
Regards,
Ravi
RSS Feed