ENH: use dot (BLAS!) in linalg.norm
BUG/ENH: blasdot: make *dot calls 64-bit safe

BLAS uses int for all its size types, so the size is going to be
silently truncated on platforms where sizeof npy_intp > sizeof int,
i.e. on modern 64-bit platforms. In this case, we do a dot product
in reasonably-sized chunks and add the result ourselves.

On platforms where sizeof(int) == sizeof(npy_intp), i.e. typical
32-bit platforms, it's up to the compiler to optimize the loop away.

Also tried to make the code more readable, replaced int by npy_intp
in a few places and removed useless register declarations (modern
compilers ignore those).
ENH: dotblas: re-route all cblas_?dot calls to chunked versions

Also factored out and simplified NumPy->BLAS stride conversion.
MAINT: don't use open(.., 'U') in Python 3.x, is deprecated.

This is default behavior in 3.x; in 2.x open() doesn't have a `newline`
kw.  So make code Python-version-specific.
TST: fix test failure due to comparing floats with assert_equal.

Observed on 32-bit linux with python 3.4b1
Merge pull request #4141 from rgommers/py34-fixes

Fix a few issues that show up with python 3.4b1
BUG: linalg: norm fails on longdouble, signed int

This fixes the following bug with longdouble:

>>> x = np.arange(10, dtype=np.longdouble)
>>> np.linalg.norm(x, ord=3)
Traceback (most recent call last):
  File "<ipython-input-5-7ee53a8ac142>", line 1, in <module>
    np.linalg.norm(x, ord=3)
  File "/tmp/v/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 2090, in norm
    return add.reduce(absx**ord, axis=axis)**(1.0/ord)
UnboundLocalError: local variable 'absx' referenced before assignment

As well as the handling of minimal values for signed integers:

>>> x = np.array([-2**31], dtype=np.int32)
>>> np.linalg.norm(x, ord=3)
/tmp/v/lib/python2.7/site-packages/numpy/linalg/linalg.py:2090: RuntimeWarning: invalid value encountered in double_scalars
  return add.reduce(absx**ord, axis=axis)**(1.0/ord)
nan
DOC: matrix_rank
DOC: more matrix_rank docs
Merge pull request #3916 from larsmans/dotblas-64bit-safe

64-bit safe _dotblas
Merge pull request #4144 from larsmans/norm-bugs

BUG: linalg: norm fails on longdouble, signed int
MAINT: remove use of ``reload`` from f2py.  See gh-4139.
DOC: synchronize release notes with 1.7.x
Merge pull request #4159 from juliantaylor/doc-sync

DOC: synchronize release notes with 1.7.x
BUG: fix complex norm of higher order

asfarray truncates the complex part, so it must be avoided for complex
types.
Closes gh-4156.
DOC: f2py manpage, use minus instead of hyphens for options
Merge pull request #4166 from juliantaylor/man-hyphen

DOC: f2py manpage, use minus instead of hyphens for options
DOC: move f2py documentation under doc/ and link its user guide with Sphinx
DOC: fix up f2py user guide formatting
DOC: split up f2py user guide + markup fixes