DOC: Used regex to find colons missing spaces which render wrong online, also other spacing or formatting mistakes
DOC: Used regex to find colons missing spaces which render wrong online, also other spacing or formatting mistakes
DOC: regex-assisted fixes of definition list formatting
merge conflict
BLD: Add NPY_RELAXED_STRIDES_CHECKING flag

This flag will toggle to a new definition for the contiguous flags
where only the memory layout is forced to be correct. As a particular
example this means that np.ones((3,1)) can be both C and F-Contiguous
and its stride[-1] can be arbitrary but the array still contiguous.

The flag will also make most new arrays be created with MAX_INTP as
stride so that unsafe usage of the stride will surface more commonly.
ENH: Relax aligned flag for shape[i] <= 1

In this case, either the dimensions stride will never be used to
access an element, so that it does not matter to the data alignment,
or the array has a size of 0 and is thus never unaligned.

Relaxed align flag is only active if NPY_RELAXED_STRIDES_CHECKING
was set during compile time.
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.
ENH: Add `raw`, `reduced`, `complete` modes to qr factorization.

If K = min(M, N) where the matrix to be factored has dimensions MxN,
then

'reduced'  : returns q, r with dimensions (M, K), (K, N) (default)
'complete' : returns q, r with dimensions (M, M), (M, N)
'r'        : returns r only with dimensions (K, N)
'raw'      : returns h, tau with dimensions (N, M), (K,)
'full'     : alias of 'reduced', deprecated
'economic' : returns h from 'raw', deprecated.

The options 'reduced', 'complete, and 'raw' are new. The default is
'reduced' and to maintain backward compatibility with earlier versions
of numpy both it and the old default 'full' can be omitted. Note that
array `h` returned in 'raw' mode is transposed for calling Fortran. Both
the 'full' and 'economic' modes are deprecated. For backwards
compatibility the modes 'full', 'economic' may be passed using only the
first letter but all others must be spelled out.
TST: Add more tests for qr factorization.

The new tests cover the new modes 'complete' and 'raw'. The testing of
the 'reduced', aka 'full' mode is improved and tests are added for the
deprecation of the 'full' and 'economic' modes. A new file
`numpy/linalg/tests/test_deprecations.py` was added for the deprecation
tests.
DOC: Document the new qr modes in the 1.8 release notes.
TST: Add NPY_RELAXED_STRIDES_CHECKING to Travis
Merge pull request #3162 from seberg/unsafe-strides

Revert changes to contiguous flags definition while creating NPY_TEST_UNSAFE_STRIDES
Merge pull request #460 from endolith/regex_formatting

DOC: Formatting fixes using regex
Merge pull request #2965 from charris/fix-qr-mode

Fix qr mode