summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polyutils.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2013-03-25 16:21:18 +0100
committerSebastian Berg <sebastian@sipsolutions.net>2013-04-01 21:12:51 +0200
commit7af1c6701673187b7d895b7646204d774bffc557 (patch)
tree58b9a74af8075affe305ab5d00bc3752268bc87b /numpy/polynomial/polyutils.py
parent3a4ed02bca07d0995aedc8846b7aeac7af3bf310 (diff)
downloadnumpy-7af1c6701673187b7d895b7646204d774bffc557.tar.gz
API: Implement new flags API with NPY_RELAXED_STRIDES_CHECKING
This largly reverts the changes to the flags setting api making the newer preferable unsafe flags setting available through the NPY_RELAXED_STRIDES_CHECKING eviroment variable. This variable is meant for testing if code will stop working when the flags definition is changed. The old definition is modified in some details to previously to enforce safer strides (which was not the case before). This means that ndim==1 size==1 arrays are not necessarily considered contiguous. Also empty arrays are not considered contiguous in some cases that were contiguous before, and the rule that an array can only be both C and F-contiguous if it is one (or zero) dimensional is relaxed, as it is incorrect for size <= 1 arrays.
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions