8000 BUG: Concatenate with empty sequences, fixes #1586 by jaimefrio · Pull Request #6224 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Concatenate with empty sequences, fixes #1586 #6224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 637 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
637 commits
Select commit Hold shift + click to select a range
0da1984
DOC: Fix typos.
jakirkham Jan 10, 2016
84d32f7
DEP: Deprecate random_integers
Jan 3, 2016
2f7140d
BUG: make result of isfinite/isinf/signbit a boolean
juliantaylor Jan 11, 2016
3f6ede2
TST: Ensure `dot` fails correctly if array types cannot be coerced in…
jakirkham Jan 9, 2016
774768c
TST: Ensure `inner` fails correctly if array types cannot be coerced …
jakirkham Jan 9, 2016
a3a6ba0
BUG: Clear error before constructing error message using calls to `Py…
jakirkham Jan 10, 2016
c39e8bc
MAINT: Refactor `cblas_innerproduct` to use `cblas_matrixproduct`.
jakirkham Jan 7, 2016
eece342
MAINT: Refactor `PyArray_InnerProduct` so that it just performs a tra…
jakirkham Jan 8, 2016
d46a1b7
ENH: Add benchmark tests for numpy.random.randint.
charris Jan 8, 2016 8000
f434a9a
BUG: Add more complex trig functions to glibc < 2.16 blacklist.
charris Jan 8, 2016
75cdc86
BUG/TST: Fix for #6723 including test: force fill_value.ndim==0
gerritholl Nov 25, 2015
dfaf5f4
BUG: skip invalid path distutils warning for empty strings
juliantaylor Jan 13, 2016
d72a6ea
Fix number sequence
TwistedHardware Jan 14, 2016
0ca5462
BUG: fix casting rules for generic datetime64/timedelta64 units
shoyer Oct 12, 2015
6b03f0b
TST, ENH: make all comparisons with NaT false
shoyer Jan 13, 2016
3b80d51
DOC: Clean up/fix several references to the "future" 1.10 release
njsmith Jan 15, 2016
f4b1695
BUG: Enforce order param for MaskedArray construction
Dec 31, 2015
311530c
MAINT: ensureisclose returns scalar when called with two scalars
andyfaff Jan 15, 2016
54d7b18
DOC, MAINT: Enforce np.ndarray arg for np.put and np.place
Jan 12, 2016
9cb28e7
MAINT: Ensure `inner` is raising a ValueError just as `dot` does in t…
jakirkham Jan 9, 2016
93e848b
DOC: Explain the new exception behavior of `np.dot` when its types ca…
jakirkham Jan 15, 2016
7cba2d6
DOC: Fix markdown style inline code to restructured text style inline…
jakirkham Jan 15, 2016
136635f
DEP: Add warnings to `__getitem__` and `__setitem__` to point out the…
jakirkham Jan 15, 2016
d714dfe
TEST: Ignore `FutureWarning` if raised from running masked array oper…
jakirkham Jan 15, 2016
e6ee55a
DOC: Explain that `MaskedArray`s will try to consistently return view…
jakirkham Jan 15, 2016
27afc66
BLD: require setuptools for Numpy builds. Closes gh-6551.
rgommers Dec 29, 2015
a1e5a99
MAINT: remove unnecessary setupegg.py file, now that we depend on set…
rgommers Dec 29, 2015
65d0862
BLD: disable (half-)broken setuptools commands and give clear error m…
rgommers Dec 29, 2015
8906ff6
BUG: make distutils.misc_util.is_string recognize unicode.
rgommers Dec 29, 2015
ac2b160
BLD: finish handling of setuptools commands.
rgommers Dec 29, 2015
99fc37c
BUG: fix TravisCI test issues when using setuptools unconditionally.
rgommers Dec 29, 2015
a6256bf
DOC: add Cython to list of dependencies in INSTALL.txt. Closes gh-6682.
rgommers Dec 29, 2015
64aace7
TST: add test to check for correct version string format.
rgommers Dec 29, 2015
a65434f
DOC: add NumpyVersion to the docs, and mention it in version.py
rgommers Dec 29, 2015
019f050
TST: fix issues with test for correctness of numpy version string.
rgommers Jan 16, 2016
9f17bf6
DOC: update INSTALL.txt.
rgommers Jan 16, 2016
97701ae
DOC: some tweaks to the install and build info in the user guide.
rgommers Jan 16, 2016
568c7d0
DOC: some more cleanup in INSTALL.txt, and rename to INSTALL.rst.txt
rgommers Jan 16, 2016
46c5e7c
DOC/BUG: textual improvements in install docs, and fix a typo in setu…
rgommers Jan 16, 2016
cd41d27
BLD: fix rebuilding after a failed build. Closes gh-5467.
rgommers Jan 16, 2016
95e74e4
Fix issue 7021
Jan 16, 2016
20a8261
REL: Do not include merge commits in Changelog.
charris Jan 16, 2016
4fa4082
BENCH: Reorganize existing benchmarks by the order they show up when …
jakirkham Jan 16, 2016
66b3c93
BENCH: Add some benchmarks for `matmul`.
jakirkham Jan 16, 2016
9530bd9
DOC: Update the release notes to state that the `A.T @ A` optimizatio…
jakirkham Jan 16, 2016
d213067
BUG: Make divmod behave better under roundoff error.
charris Jan 15, 2016
d5070bd
TST: Add tests for divmod
charris Jan 15, 2016
4ef39be
BUG: fix issues with signed zeros in scalar math complex division.
Nov 17, 2015
39187fd
DOC: Fix typo.
jakirkham Jan 16, 2016
3a5c316
BLD: build travis dev wheels for py27
ogrisel Jan 16, 2016
2f81583
BLD: fix runtests.py, was broken by the move to setuptools.
rgommers Jan 17, 2016
7689dad
DOC: add build system changes to 1.11.0 release notes.
rgommers Jan 17, 2016
9826f7d
STY: Wrap some long lines.
jakirkham Jan 16, 2016
4de9349
TST: Make assert_warns an optional contextmanager
shoyer Jan 15, 2016
26dbd43
API: Make datetime64 timezone naive
shoyer Jan 15, 2016
63f2491
DOC: document changes to assert_warns
shoyer Jan 17, 2016
14df41f
Revert "Merge pull request #7001 from shoyer/NaT-comparison"
charris Jan 17, 2016
437716f
MAINT: memcpy-based ~4x faster, typed shuffle.
anntzer Dec 6, 2015
ba0b030
Top shuffle speed for machine-sized ints/floats.
anntzer Jan 7, 2016
3e7db07
Revert to non-generative test.
anntzer Jan 13, 2016
7946818
BUG: Fix nanpercentile crash on all-nan slices
Jun 18, 2015
4b73f68
TST: de-uglify the setuptools appeasement in runtests.py a bit.
rgommers Jan 17, 2016
a6362d9
MAINT: Add '0x' to API version error for clarity.
stuarteberg Nov 2, 2015
3aa38be
ENH: Allow site.cfg information with libraries key
zerothi Jan 17, 2016
a8c68ab
TST: np.isclose, correct error msg on test
andyfaff Jan 17, 2016
054d7f7
ENH: Allow specification of terms to fit in legfit
jonathanunderwood Sep 25, 2015
0e27b6d
TST: Add tests for legfit with deg specified as list
jonathanunderwood Sep 25, 2015
44578b6
ENH: Allow specification of terms to fit in chebfit
jonathanunderwood Oct 12, 2015
4a1b6bf
TST: Add tests for chebfit with deg specified as list
jonathanunderwood Oct 12, 2015
9f7fbf5
ENH: Allow specification of terms to fit in hermfit
jonathanunderwood Oct 12, 2015
2fa4810
TST: Add tests for hermfit with deg specified as list
jonathanunderwood Oct 12, 2015
d29b13d
ENH: Allow specification of terms to fit in lagfit
jonathanunderwood Nov 5, 2015
72763b4
TST: Add tests for lagfit with deg specified as list
jonathanunderwood Nov 5, 2015
7b6e162
ENH: Allow specification of terms to fit in polyfit
jonathanunderwood Dec 2, 2015
5f09ec6
TST: Add tests for polyfit with deg specified as list
jonathanunderwood Dec 3, 2015
8b8984e
ENH: Allow specification of terms to fit in hermefit
jonathanunderwood Dec 3, 2015
775dfdf
TST: Add tests for hermefit with deg specified as list
jonathanunderwood Dec 3, 2015
345a9fe
ENH: Allow specification of terms to fit in fit method
jonathanunderwood Dec 3, 2015
d50f66b
TST: Add tests for check_fit with deg specified as list
jonathanunderwood Dec 3, 2015
13b6fcd
Add release note for polynomial fit deg changes
jonathanunderwood Jan 18, 2016
16051ef
DEP: Emit FutureWarning for NAT comparisons.
charris Jan 18, 2016
51c2bb7
TST: Add tests for NAT comparison FutureWarning.
charris Jan 19, 2016
8c952f3
BUG:Should fix astype cast bug in numpy.fft module
tushar-rishav Jan 18, 2016
f27b543
MAINT: Refactor polynomial leastsquares fits.
charris Jan 18, 2016
a7ec99d
DOC: Update the 1.10.0 release notes.
charris Jan 18, 2016
56e6ec9
TST: Added lots of new tests for fromnumeric.py
Jan 16, 2016
db7f662
REL: Prepare for 1.10.x branch.
charris Jan 20, 2016
c4ccdca
REL: Update master branch after 1.12.x branch has been made.
charris Jan 20, 2016
b798e25
MAINT: Simplified mtrand.pyx helpers
Jan 12, 2016
3d49cc6
MAINT: Update the git .mailmap file.
charris Jan 20, 2016
eea5d1f
BLD: fix compilation on non glibc-Linuxes
xdmiodz Jan 21, 2016
678922b
Revert "BLD: fix compilation on non glibc-Linuxes"
charris Jan 21, 2016
b85ea77
BLD: fix compilation on non glibc-Linuxes
xdmiodz Jan 21, 2016
97f2e1e
BUG: In `norm`, always cast non-floating point arrays to 64-bit float…
jakirkham Jan 21, 2016
64f3a6a
TST: Verify that `norm` is properly casting values to floats as needed.
jakirkham Jan 22, 2016
bc5413f
BUG: Make sure that the `ord=0` case returns a float.
jakirkham Jan 22, 2016
446842a
DOC: Update `norm` docstring to include examples that reflect that al…
jakirkham Jan 22, 2016
f8402df
DOC: Update the 1.11.0 release notes.
charris Jan 20, 2016
f12fdac
TST: Added broadcasting tests in test_random.py
Jan 21, 2016
c1b01e3
DOC: Clarified output size for broadcastable mtrand.pyx functions
Jan 21, 2016
dc0bd96
DOC: update Python versions requirements in the install docs
alexbrc Jan 24, 2016
97aee37
BUG: One element array inputs get one element arrays returned in np.r…
Jan 18, 2016
e958eed
MAINT: Fix typos in docs
dongjoon-hyun Jan 25, 2016
b1d134f
TST: Fixed f2py test for win32 virtualenv
Jan 25, 2016
043355d
TST: Fixed f2py test for non-versioned python executables
Jan 25, 2016
3b9163c
TST: test installing from sdist on TravisCI.
Jan 27, 2016
399e3e8
BLD/BUG: revert usage of setuptools when building an sdist.
Jan 27, 2016
e5cc4a0
MAINT: warn in egg_info command if using setuptools.sdist.
Jan 27, 2016
2bc2a1b
MAINT: Fix some typos in a code string and comments
dongjoon-hyun Jan 27, 2016
f80a2e0
DOC: Clarify behavior in np.random.uniform
Jan 16, 2016
eb02fdc
BUG: Unpickled void scalars should be contiguous
gmarkall Jan 29, 2016
a4108f0
TST: Unpickled void scalars must be behaved
gmarkall Jan 29, 2016
6689d05
MAINT: Removed conditionals that are always true in datetime_strings.c
kawochen Jan 23, 2016
1599702
DOC: Updated documentation wording and examples for np.percentile.
madphysicist Jan 27, 2016
9205185
MAINT: Accepted all review comments for PR#7125
madphysicist Jan 27, 2016
9c44346
MAINT: Change `call_fortran` into `callfortran` in comments.
dongjoon-hyun Jan 29, 2016
d399468
TST: Add missing suffix to temppath manager
seberg Jan 30, 2016
772d15a
TST: remove duplicate test
njsmith Jan 30, 2016
3ee856e
Temporarily disable __numpy_ufunc__
njsmith Jan 30, 2016
ee9cb94
BUG: mode kwargs passed as unicode to np.pad raises an exception
bertrand-l Jan 31, 2016
f0c357d
BUG: Fixed mingw.lib error
Jan 25, 2016
4c6f2ab
Reascertain that linspace respects ndarray subclasses in start, stop.
mhvk Jan 30, 2016
06de9b8
BUG: Fixed regressions in np.piecewise in ref to #5737 and #5729.
bastula Jan 30, 2016
39a12c7
MAINT: Addressed comments in PR #7145
bastula Jan 31, 2016
e60b618
BUG: Fixed 'midpoint' interpolation of np.percentile in odd cases.
madphysicist Jan 27, 2016
dd1ea73
ENH: usecols now accepts an int when only one column has to be read
I--P Nov 9, 2015
6b7c96c
BUG: check lower limit of base in base_repr.
nbeaver Sep 10, 2015
9f15b6b
DOC: base_repr *can* handle negative integers.
nbeaver Feb 1, 2016
090ded8
TST: out of bounds bases in base_repr
nbeaver Feb 1, 2016
e5b63e0
Update Wikipedia references for mtrand.pyx
Feb 2, 2016
8bb4f7a
TST: Fixed f2py test for Anaconda non-win32
gfyoung Feb 2, 2016
f83c9da
DOC: Fix broken pandas link in 1.11.0 release notes
gfyoung Feb 2, 2016
edf055c
STY: Drop some trailing spaces in `numpy.ma.core`.
jakirkham Feb 5, 2016
da78ff6
MAINT: Removed supurious assert in histogram estimators
madphysicist Feb 5, 2016
996e9d5
DOC: add vstack, hstack, dstack reference to stack documentation.
aukejw Feb 5, 2016
d329ed9
DOC: changed 'depth wise' to 'depthwise', 'the existing' to 'an exist…
aukejw Feb 5, 2016
a79c2da
TST: Pin virtualenv used on Travis CI. [skip appveyor]
jakirkham Feb 5, 2016
fbff370
BUG: Fixed previous attempt to fix dimension mismatch in nanpercentile
madphysicist Feb 3, 2016
ed1b724
Revert "DOC: add vstack, hstack, dstack reference to stack documentat…
shoyer Feb 5, 2016
5d5da46
BUG: raise IOError on not a file in python2
juliantaylor Feb 6, 2016
395828e
DOC: Updated minor typos in function_base.py and test_function_base.py
madphysicist Feb 2, 2016
2fa1cb5
BUG: many functions silently drop `keepdims` kwarg
tacaswell Apr 14, 2014
9507606
STY: pep8 only
tacaswell Feb 5, 2016
9f4ae2d
MNT: move std, var, mean calls out of try block
tacaswell Feb 5, 2016
ebeb228
MNT: reduce number of return statements
tacaswell Feb 5, 2016
c1374f3
DOC: add release notes
tacaswell Feb 5, 2016
41e552e
TST: Bump `virtualenv` to 14.0.6.
jakirkham Feb 8, 2016
231c180
DOC: Fix fmin examples
omegahm Feb 8, 2016
a9f3179
ENH: for savez create temporary file alongside with the target file
yarikoptic Jan 28, 2016
2e2e4d0
ENH: catch and rethrow exception in _savez upon IOError with filename…
yarikoptic Jan 28, 2016
fdb391f
BF: Since savez could be used with BytesIO - check if file is a string
yarikoptic Jan 28, 2016
93bdf47
BUG: Raise a quieter `MaskedArrayFutureWarning` for mask changes.
jakirkham Feb 5, 2016
1b218b7
TST: Drop `FutureWarning` filters from tests where they were added.
jakirkham Feb 8, 2016
131aac5
MAINT: Made `iterable` return a boolean
madphysicist Feb 8, 2016
be86a92
DOC: Removed residual merge markup from previous commit
madphysicist Feb 13, 2016
5580090
Change 'pubic' to 'public'.
building39 Feb 13, 2016
9ebc714
Added 'doane' and 'sqrt' estimators to np.histogram in numpy.function…
madphysicist Feb 1, 2016
500c612
DOC: update sphinxext to numpydoc 0.6.0
rgommers Feb 13, 2016
0787d37
DOC: fix a number of reST formatting issues in docstrings.
rgommers Feb 13, 2016
fbf0f6c
DOC: fix up invalid LaTeX in histogram docstring.
rgommers Feb 13, 2016
13b6e0d
DOC: Add documentation for as_strided
seberg Jan 21, 2016
5082ff2
TST: Fail quickly on AppVeyor for superseded PR builds
tkelman Feb 14, 2016
18c72ec
DOC: metion writeable keyword in as_strided in release notes
seberg Feb 14, 2016
dc782a2
DOC: remove link to documentation wiki editor from HOWTO_DOCUMENT.
rgommers Feb 14, 2016
d6be799
DOC,REL: Update 1.11.0 notes.
charris Feb 14, 2016
ace1d88
ENH: Adding support to the range keyword for estimation of the optima…
nayyarv Sep 22, 2015
4f40570
BUG: only benchmark complex256 if it exists
matthew-brett Feb 14, 2016
56f570b
ENH: make memmap file in temporary directory
matthew-brett Feb 14, 2016
8c8adc6
DOC: Fix mismatched variable names in docstrings.
dongjoon-hyun Feb 16, 2016
0544b5b
MAINT: Use `is None` or `is not None` instead of `== None` or `!= None`.
dongjoon-hyun Feb 16, 2016
181b128
BUG: Static cache for imported warning needs initialization to NULL.
charris Feb 14, 2016
d6f5808
ENH: Add _VisibleDeprecationTestcase to test_deprecations.py
charris Feb 14, 2016
d38facf
Added self to mailmap
madphysicist Feb 16, 2016
508f0ba
DOC: note in h/v/dstack points users to stack/concatenate
aukejw Feb 15, 2016
e8a25bc
DOC: rewrite stack/concatenate reference in h/v/dstack
aukejw Feb 16, 2016
7fe02e9
BUG: Enforce dtype for randint singletons
Feb 7, 2016
e73831f
DOC: apply_along_axis missing whitespace inserted before colon
MSeifert04 Feb 18, 2016
d235aad
BUG: Make returned unravel_index arrays writeable
gfyoung Feb 18, 2016
e4bc5e4
MAINT: Remove redundant trailing semicolons.
dongjoon-hyun Feb 18, 2016
82ce451
MAINT: Use PySlice_GetIndicesEx instead of custom reimplementation
njsmith Feb 9, 2016
61761e5
MAINT: Fix typos in docs/comment of `ma` and `polynomial` modules.
dongjoon-hyun Feb 19, 2016
9372100
MAINT: Don't use PyInstance_Check to detect object type
ahaldane Feb 17, 2016
61775f1
BUG: Segfault for classes with deceptive __len__
ahaldane Feb 17, 2016
b9bf8e9
BUG: Make randint backwards compatible with pandas
gfyoung Feb 19, 2016
d760aa3
BUG: Preserve array order in np.delete
gfyoung Feb 18, 2016
0d9dbec
Revert part of #3907 which incorrectly propogated MaskedArray info.
mhvk Feb 21, 2016
833cedf
ENH: Add new npy_divmod function to npy_math.
charris Feb 15, 2016
d467b4a
ENH: Make numpy floating scalars consistent with Python divmod.
charris Feb 15, 2016
65c8307
MAINT: Remove floor function code no longer needed in scalarmath.
charris Feb 16, 2016
3d56b57
ENH: Make numpy ufuncs compatible with Python divmod.
charris Feb 16, 2016
785e7d0
TST: Add tests for '//' and '%' (floor_divide, remainder).
charris Feb 16, 2016
5b667a1
DOC: Document that floor_divide and remainder are complementary.
charris Feb 19, 2016
50f7231
DOC: Fix mismatched variable names in docstrings.
dongjoon-hyun Feb 21, 2016
5b36b8d
DOC: dev: stop recommending keeping local master updated with upstrea…
pv Feb 21, 2016
53ce920
DOC: Update 1.11.0 release notes to mention divmod changes.
charris Feb 21, 2016
09aa559
DOC: Update 1.12.0 release notes to mention indexing errors.
charris Feb 21, 2016
d3647c8
Clarify error on repr failure in assert_equal.
anntzer Feb 19, 2016
7b293b2
BLD: Switch order of test for lapack_mkl and openblas_lapack
rmalouf Feb 11, 2016
e986bc8
Missing some characters in link.
madphysicist Feb 22, 2016
5accbf6
BUG/TST: Fix #7259, do not "force scalar" for already scalar str/bytes
gerritholl Feb 16, 2016
e6f26b1
STY: Fix GitHub rendering of ordered lists >9
JDWarner Feb 22, 2016
9624f83
BUG: Remove data race in mtrand: two threads could mutate the state.
ssbr Feb 22, 2016
0361c55
DOC: corrected grammatical error in quickstart doc
rehassachdeva Feb 23, 2016
2bf24fd
BUG: Incrementing the wrong reference on return
madphysicist Feb 22, 2016
aaa982c
TST: Fixed shuffle axis in tests.
madphysicist Feb 18, 2016
6402d7c
[PATCH] Make _pointer_type_cache functional
udiboy1209 Feb 22, 2016
e590acc
MAINT: Cleanup for histogram bin estimator selection
madphysicist Feb 6, 2016
8d1d31e
DOC: Added understanding code and getting started section to developm…
rehassachdeva Feb 20, 2016
12fe4e8
TST: fix MemoryError on win32
cgohlke Feb 23, 2016
2284284
TST: Install `pytz` in the CI.
jakirkham Feb 25, 2016
e6416e0
DOC: Fixed math rendering in tensordot docs.
simongibbons Feb 25, 2016
9441e14
DOC: Fix more typos in docs and comments.
dongjoon-hyun Feb 21, 2016
8cb829b
Maint: Removed extra space from `ureduce`
madphysicist Feb 26, 2016
83e17a4
TST: Fix some MA tests to avoid looking at the .data attribute
ahaldane Feb 14, 2016
55aaaa7
MAINT: Hide nan warnings for internal ma computations
ahaldane Feb 14, 2016
e7d1d99
TST: added a test for constant padding on 4 sides of a 2d array
chiffa Feb 27, 2016
7567169
BUG: constant padding expected wrong type in constant_values
chiffa Feb 27, 2016
01a1674
Fix copy and paste oversight.
golnazir Feb 28, 2016
109d598
DEP: Warn about assigning 'data' attribute of ndarray
gfyoung Feb 18, 2016
ec63a60
BUG: np.irr should return NaN if there are no real solutions
simongibbons Feb 24, 2016
d18be4d
ENH: add support for BLIS to numpy.distutils
rgommers Feb 16, 2016
a99dd5e
DOC: add added BLIS support to 1.12.0 release notes.
rgommers Feb 22, 2016
24089f7
DOC: add notes to site.cfg.example on compiling BLIS itself and again…
rgommers Feb 23, 2016
fe44de8
TST: Fix #6542: Add tests for non-iterable input...
gkBCCN Feb 29, 2016
4a790e1
BUG: Give bitwise_xor an identity.
charris Mar 2, 2016
46442a3
ENH: Add identity for bitwise_and.
charris Mar 2, 2016
8fcf793
TST: Add tests for the bitwise ufuncs.
charris Mar 3, 2016
57db3b5
DOC: Document the changed bitwise_and identity.
charris Mar 4, 2016
dcfa9bb
DOC: Update random.seed in mtrand.pyx.
orena1 Feb 23, 2016
d69d347
DOC: Clarify the valid range of integers passed to random.seed.
charris Feb 28, 2016
9c7c0a6
added NumPy logo and separator
philipgura Mar 4, 2016
7db8eb9
MAINT: cleanup np.average
ahaldane Mar 5, 2016
f333a30
DOC: note about wheels / windows wheels for pypi
matthew-brett Mar 7, 2016
e1ba8df
Added label icon to Travis status
philipgura Mar 7, 2016
219b23d
ENH: platform-specific install hook to change init
matthew-brett Feb 11, 2016
f39e229
DOC: description of _distribution_init for release
matthew-brett Feb 13, 2016
0e71935
DOC: fix typo
samuelstjean Mar 9, 2016
3a84813
BUG: incorrect type for objects whose __len__ fails
ahaldane Mar 9, 2016
d2d8dd4
DOC: add nanprod to the list of math routines
shoyer Mar 12, 2016
e2684d0
BUG: Fix decref before incref for in-place accumulate
seberg Mar 10, 2016
9eec39d
ENH: Add generalized flip function and its tests
erensezener Feb 26, 2016
721bbbb
DEP: Deprecated using a float index in linspace
emilienkofman Feb 24, 2016
9654a7f
DEP: Deprecated using a float index in linspace
emilienkofman Mar 9, 2016
2948e2f
BUG: Fix binary_repr for negative numbers
gfyoung Feb 3, 2016
a7b8578
DOC: Updates to documentation from perusing it in detail.
madphysicist Feb 24, 2016
9dcaf09
MAINT: Wrapped some docstrings and fixed typo
madphysicist Mar 4, 2016
d2cd83e
ENH: Check array dimensionality in cov function.
charris Mar 13, 2016
20b6eee
MAINT/BUG: Clip real and imag parts of corrcoef return to [-1, 1].
charris Mar 13, 2016
16dbd0a
TST: Check that result of corrcoef are clipped.
charris Mar 13, 2016
943e6cf
BUG, MANT: concatenate of empty sequences, fixes #1586
jaimefrio Mar 14, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MAINT: Wrapped some docstrings and fixed typo
  • Loading branch information
madphysicist authored and jaimefrio committed Mar 15, 2016
commit 9dcaf09abe1a7befb505b1c4bcb3241c6b56a755
2 changes: 2 additions & 0 deletions doc/source/_static/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file is here to avoid a sphinx warning about a missing _static folder.
# Empty folders are not allowed into git.
85 changes: 44 additions & 41 deletions doc/source/reference/c-api.types-and-structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,10 @@ PyUFunc_Type

.. c:member:: int PyUFuncObject.identity

Either :c:data:`PyUFunc_One`, :c:data:`PyUFunc_Zero`, or
:c:data:`PyUFunc_None` to indicate the identity for this operation.
It is only used for a reduce-like call on an empty array.
Either :c:data:`PyUFunc_One`, :c:data:`PyUFunc_Zero`,
:c:data:`PyUFunc_None` or :c:data:`PyUFunc_AllOnes` to indicate
the identity for this operation. It is only used for a
reduce-like call on an empty array.

.. c:member:: void PyUFuncObject.functions(char** args, npy_intp* dims,
npy_intp* steps, void* extradata)
Expand Down Expand Up @@ -745,8 +746,8 @@ PyUFunc_Type
.. c:member:: int PyUFuncObject.ntypes

The number of supported data types for the ufunc. This number
specifies how many different 1-d loops (of the builtin data types) are
available.
specifies how many different 1-d loops (of the builtin data
types) are available.

.. c:member:: char *PyUFuncObject.name

Expand All @@ -755,7 +756,7 @@ PyUFunc_Type

.. c:member:: char *PyUFuncObject.types

An array of *nargs* :math:`\times` *ntypes* 8-bit type_numbers
An array of :math:`nargs \times ntypes` 8-bit type_numbers
which contains the type signature for the function for each of
the supported (builtin) data types. For each of the *ntypes*
functions, the corresponding set of type numbers in this array
Expand All @@ -771,9 +772,9 @@ PyUFunc_Type

.. c:member:: void *PyUFuncObject.ptr

Any dynamically allocated memory. Currently, this is used for dynamic
ufuncs created from a python function to store room for the types,
data, and name members.
Any dynamically allocated memory. Currently, this is used for
dynamic ufuncs created from a python function to store room for
the types, data, and name members.

.. c:member:: PyObject *PyUFuncObject.obj

Expand All @@ -782,10 +783,11 @@ PyUFunc_Type

.. c:member:: PyObject *PyUFuncObject.userloops

A dictionary of user-defined 1-d vector loops (stored as CObject ptrs)
for user-defined types. A loop may be registered by the user for any
user-defined type. It is retrieved by type number. User defined type
numbers are always larger than :c:data:`NPY_USERDEF`.
A dictionary of user-defined 1-d vector loops (stored as CObject
ptrs) for user-defined types. A loop may be registered by the
user for any user-defined type. It is retrieved by type number.
User defined type numbers are always larger than
:c:data:`NPY_USERDEF`.


.. c:member:: npy_uint32 PyUFuncObject.op_flags
Expand All @@ -801,14 +803,15 @@ PyArrayIter_Type

.. c:var: PyArrayIter_Type

This is an iterator object that makes it easy to loop over an N-dimensional
array. It is the object returned from the flat attribute of an
ndarray. It is also used extensively throughout the implementation
internals to loop over an N-dimensional array. The tp_as_mapping
interface is implemented so that the iterator object can be indexed
(using 1-d indexing), and a few methods are implemented through the
tp_methods table. This object implements the next method and can be
used anywhere an iterator can be used in Python.
This is an iterator object that makes it easy to loop over an
N-dimensional array. It is the object returned from the flat
attribute of an ndarray. It is also used extensively throughout the
implementation internals to loop over an N-dimensional array. The
tp_as_mapping interface is implemented so that the iterator object
can be indexed (using 1-d indexing), and a few methods are
implemented through the tp_methods table. This object implements the
next method and can be used anywhere an iterator can be used in
Python.

.. c:type:: PyArrayIterObject

Expand Down Expand Up @@ -871,8 +874,8 @@ PyArrayIter_Type
.. c:member:: npy_intp *PyArrayIterObject.backstrides

How many bytes needed to jump from the end of a dimension back
to its beginning. Note that `backstrides`[k]= `strides`[k] *
`dims_m1`[k], but it is stored here as an optimization.
to its beginning. Note that ``backstrides[k] == strides[k] *
dims_m1[k]``, but it is stored here as an optimization.

.. c:member:: npy_intp *PyArrayIterObject.factors

Expand Down Expand Up @@ -900,8 +903,8 @@ How to use an array iterator on a C-level is explained more fully in
later sections. Typically, you do not need to concern yourself with
the internal structure of the iterator object, and merely interact
with it through the use of the macros :c:func:`PyArray_ITER_NEXT` (it),
:c:func:`PyArray_ITER_GOTO` (it, dest), or :c:func:`PyArray_ITER_GOTO1D` (it,
index). All of these macros require the argument *it* to be a
:c:func:`PyArray_ITER_GOTO` (it, dest), or :c:func:`PyArray_ITER_GOTO1D`
(it, index). All of these macros require the argument *it* to be a
:c:type:`PyArrayIterObject *`.


Expand Down Expand Up @@ -938,8 +941,8 @@ PyArrayMultiIter_Type

.. c:macro: PyArrayMultiIterObject.PyObject_HEAD

Needed at the start of every Python object (holds reference count and
type identification).
Needed at the start of every Python object (holds reference count
and type identification).

.. c:member:: int PyArrayMultiIterObject.numiter

Expand All @@ -963,17 +966,17 @@ PyArrayMultiIter_Type

.. c:member:: PyArrayIterObject **PyArrayMultiIterObject.iters

An array of iterator objects that holds the iterators for the arrays
to be broadcast together. On return, the iterators are adjusted for
broadcasting.
An array of iterator objects that holds the iterators for the
arrays to be broadcast together. On return, the iterators are
adjusted for broadcasting.

PyArrayNeighborhoodIter_Type
----------------------------

.. c:var: PyArrayNeighborhoodIter_Type

This is an iterator object that makes it easy to loop over an N-dimensional
neighborhood.
This is an iterator object that makes it easy to loop over an
N-dimensional neighborhood.

.. c:type:: PyArrayNeighborhoodIterObject

Expand Down Expand Up @@ -1003,18 +1006,18 @@ are :c:data:`Py{TYPE}ArrType_Type` where ``{TYPE}`` can be

**Bool**, **Byte**, **Short**, **Int**, **Long**, **LongLong**,
**UByte**, **UShort**, **UInt**, **ULong**, **ULongLong**,
**Half**, **Float**, **Double**, **LongDouble**, **CFloat**, **CDouble**,
**CLongDouble**, **String**, **Unicode**, **Void**, and
**Half**, **Float**, **Double**, **LongDouble**, **CFloat**,
**CDouble**, **CLongDouble**, **String**, **Unicode**, **Void**, and
**Object**.

These type names are part of the C-API and can therefore be created in
extension C-code. There is also a :c:data:`PyIntpArrType_Type` and a
:c:data:`PyUIntpArrType_Type` that are simple substitutes for one of the
integer types that can hold a pointer on the platform. The structure
of these scalar objects is not exposed to C-code. The function
:c:func:`PyArray_ScalarAsCtype` (..) can be used to extract the C-type value
from the array scalar and the function :c:func:`PyArray_Scalar` (...) can be
used to construct an array scalar from a C-value.
:c:func:`PyArray_ScalarAsCtype` (..) can be used to extract the C-type
value from the array scalar and the function :c:func:`PyArray_Scalar`
(...) can be used to construct an array scalar from a C-value.


Other C-Structures
Expand All @@ -1032,8 +1035,8 @@ PyArray_Dims

.. c:type:: PyArray_Dims

This structure is very useful when shape and/or strides information is
supposed to be interpreted. The structure is:
This structure is very useful when shape and/or strides information
is supposed to be interpreted. The structure is:

.. code-block:: c

Expand All @@ -1046,8 +1049,8 @@ PyArray_Dims

.. c:member:: npy_intp *PyArray_Dims.ptr

A pointer to a list of (:c:type:`npy_intp`) integers which usually
represent array shape or array strides.
A pointer to a list of (:c:type:`npy_intp`) integers which
usually represent array shape or array strides.

.. c:member:: int PyArray_Dims.len

Expand Down
119 changes: 61 additions & 58 deletions numpy/core/fromnumeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,21 @@ def reshape(a, newshape, order='C'):
newshape : int or tuple of ints
The new shape should be compatible with the original shape. If
an integer, then the result will be a 1-D array of that length.
One shape dimension can be -1. In this case, the value is inferred
from the length of the array and remaining dimensions.
One shape dimension can be -1. In this case, the value is
inferred from the length of the array and remaining dimensions.
order : {'C', 'F', 'A'}, optional
Read the elements of `a` using this index order, and place the elements
into the reshaped array using this index order. 'C' means to
read / write the elements using C-like index order, with the last axis
index changing fastest, back to the first axis index changing slowest.
'F' means to read / write the elements using Fortran-like index order,
with the first index changing fastest, and the last index changing
slowest.
Note that the 'C' and 'F' options take no account of the memory layout
of the underlying array, and only refer to the order of indexing. 'A'
means to read / write the elements in Fortran-like index order if `a`
is Fortran *contiguous* in memory, C-like order otherwise.
Read the elements of `a` using this index order, and place the
elements into the reshaped array using this index order. 'C'
means to read / write the elements using C-like index order,
with the last axis index changing fastest, back to the first
axis index changing slowest. 'F' means to read / write the
elements using Fortran-like index order, with the first index
changing fastest, and the last index changing slowest. Note that
the 'C' and 'F' options take no account of the memory layout of
the underlying array, and only refer to the order of indexing.
'A' means to read / write the elements in Fortran-like index
order if `a` is Fortran *contiguous* in memory, C-like order
otherwise.

Returns
-------
Expand Down Expand Up @@ -560,11 +561,12 @@ def partition(a, kth, axis=-1, kind='introselect', order=None):
"""
Return a partitioned copy of an array.

Creates a copy of the array with its elements rearranged in such a way that
the value of the element in kth position is in the position it would be in
a sorted array. All elements smaller than the kth element are moved before
this element and all equal or greater are moved behind it. The ordering of
the elements in the two partitions is undefined.
Creates a copy of the array with its elements rearranged in such a
way that the value of the element in k-th position is in the
position it would be in a sorted array. All elements smaller than
the k-th element are moved before this element and all equal or
greater are moved behind it. The ordering of the elements in the two
partitions is undefined.

.. versionadded:: 1.8.0

Expand All @@ -573,23 +575,23 @@ def partition(a, kth, axis=-1, kind='introselect', order=None):
a : array_like
Array to be sorted.
kth : int or sequence of ints
Element index to partition by. The kth value of the element will be in
its final sorted position and all smaller elements will be moved before
it and all equal or greater elements behind it.
The order all elements in the partitions is undefined.
If provided with a sequence of kth it will partition all elements
indexed by kth of them into their sorted position at once.
Element index to partition by. The k-th value of the element
will be in its final sorted position and all smaller elements
will be moved before it and all equal or greater elements behind
it. The order all elements in the partitions is undefined. If
provided with a sequence of k-th it will partition all elements
indexed by k-th of them into their sorted position at once.
axis : int or None, optional
Axis along which to sort. If None, the array is flattened before
sorting. The default is -1, which sorts along the last axis.
kind : {'introselect'}, optional
Selection algorithm. Default is 'introselect'.
order : str or list of str, optional
When `a` is an array with fields defined, this argument specifies
which fields to compare first, second, etc. A single field can
be specified as a string. Not all fields need be specified, but
unspecified fields will still be used, in the order in which they
come up in the dtype, to break ties.
When `a` is an array with fields defined, this argument
specifies which fields to compare first, second, etc. A single
field can be specified as a string. Not all fields need be
specified, but unspecified fields will still be used, in the
order in which they come up in the dtype, to break ties.

Returns
-------
Expand All @@ -604,10 +606,11 @@ def partition(a, kth, axis=-1, kind='introselect', order=None):

Notes
-----
The various selection algorithms are characterized by their average speed,
worst case performance, work space size, and whether they are stable. A
stable sort keeps items with the same key in the same relative order. The
available algorithms have the following properties:
The various selection algorithms are characterized by their average
speed, worst case performance, work space size, and whether they are
stable. A stable sort keeps items with the same key in the same
relative order. The available algorithms have the following
properties:

================= ======= ============= ============ =======
kind speed worst case work space stable
Expand All @@ -616,14 +619,14 @@ def partition(a, kth, axis=-1, kind='introselect', order=None):
================= ======= ============= ============ =======

All the partition algorithms make temporary copies of the data when
partitioning along any but the last axis. Consequently, partitioning
along the last axis is faster and uses less space than partitioning
along any other axis.
partitioning along any but the last axis. Consequently,
partitioning along the last axis is faster and uses less space than
partitioning along any other axis.

The sort order for complex numbers is lexicographic. If both the real
and imaginary parts are non-nan then the order is determined by the
real parts except when they are equal, in which case the order is
determined by the imaginary parts.
The sort order for complex numbers is lexicographic. If both the
real and imaginary parts are non-nan then the order is determined by
the real parts except when they are equal, in which case the order
is determined by the imaginary parts.

Examples
--------
Expand All @@ -646,10 +649,10 @@ def partition(a, kth, axis=-1, kind='introselect', order=None):

def argpartition(a, kth, axis=-1, kind='introselect', order=None):
"""
Perform an indirect partition along the given axis using the algorithm
specified by the `kind` keyword. It returns an array of indices of the
same shape as `a` that index data along the given axis in partitioned
order.
Perform an indirect partition along the given axis using the
algorithm specified by the `kind` keyword. It returns an array of
indices of the same shape as `a` that index data along the given
axis in partitioned order.

.. versionadded:: 1.8.0

Expand All @@ -658,29 +661,29 @@ def argpartition(a, kth, axis=-1, kind='introselect', order=None):
a : array_like
Array to sort.
kth : int or sequence of ints
Element index to partition by. The kth element will be in its final
sorted position and all smaller elements will be moved before it and
all larger elements behind it.
The order all elements in the partitions is undefined.
If provided with a sequence of kth it will partition all of them into
their sorted position at once.
Element index to partition by. The k-th element will be in its
final sorted position and all smaller elements will be moved
before it and all larger elements behind it. The order all
elements in the partitions is undefined. If provided with a
sequence of k-th it will partition all of them into their sorted
position at once.
axis : int or None, optional
Axis along which to sort. The default is -1 (the last axis). If None,
the flattened array is used.
Axis along which to sort. The default is -1 (the last axis). If
None, the flattened array is used.
kind : {'introselect'}, optional
Selection algorithm. Default is 'introselect'
order : str or list of str, optional
When `a` is an array with fields defined, this argument specifies
which fields to compare first, second, etc. A single field can
be specified as a string, and not all fields need be specified,
but unspecified fields will still be used, in the order in which
they come up in the dtype, to break ties.
When `a` is an array with fields defined, this argument
specifies which fields to compare first, second, etc. A single
field can be specified as a string, and not all fields need be
specified, but unspecified fields will still be used, in the
order in which they come up in the dtype, to break ties.

Returns
-------
index_array : ndarray, int
Array of indices that partition `a` along the specified axis.
In other words, ``a[index_array]`` yields a sorted `a`.
In other words, ``a[index_array]`` yields a partitioned `a`.

See Also
--------
Expand Down
0