| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a modification to the dtype str and repr functions what helps
solve https://github.com/numpy/numpy/issues/3581.
I discussed it on the mailing list in a message "Re: structured arrays,
recarrays, and record arrays" on Jan 19 2015. I didn't get any replies,
but hopefully that merely means "no opinion" rather than "bad idea".
What it does: For structured arrays, if the dtype is not np.void then
print the dtype as `(base_dtype, dtype)`.
New Behavior:
>>> a = np.array([(1,'ABC'), (2, "DEF")], dtype=[('foo', int), ('bar', 'S4')])
>>> np.rec.array(a)
rec.array([(1, 'ABC'), (2, 'DEF')],
dtype=(numpy.record, [('foo', '<i8'), ('bar', 'S4')]))
>>> a.view(np.recarray)
rec.array([(1, 'ABC'), (2, 'DEF')],
dtype=[('foo', '<i8'), ('bar', 'S4')])
|
|\
| |
| | |
BUG: Fix #3926: pickling empty string fails
|
|/ |
|
|\
| |
| | |
ENH: Make swapaxes always return a view. Fixes #5260
|
| | |
|
| |
| |
| |
| |
| | |
swapaxes now returns a view of the input array when the axes to swap
are both the same, not the input array as it used to do. Fixes #5260
|
|\ \
| |/
|/| |
ENH: faster fastclip functions
|
|/
|
|
|
|
|
|
|
|
|
|
| |
copying the element in the loop via an else is significantly faster than
copying first and skipping the else clause as it allows the compiler to
use branchless instructions like minsd/maxsd.
For floats this is 3 times faster for min xor max and 40% faster for min
and max. Further improvements are possible via vectorization.
There is a penalty for inplace clips due to higher memory bandwidth
usage but it seems to be less than 10% and could be easily recovered
with another template specialization if required.
|
|\
| |
| | |
Rollaxis always return view
|
| |
| |
| |
| | |
There were no tests previous to this.
|
| |
| |
| |
| |
| | |
Previous to this commit, rollaxis returned a view unless the order of
the axis was unchanged, in which case the input array was returned.
|
|/ |
|
|\
| |
| | |
MAINT/TST: Add test for require, stop making extra copies.
|
| |
| |
| |
| |
| | |
Also add ENSUREARRAY and a note about requiring native
byteorder to the docs.
|
|\ \
| | |
| | | |
DOC: fix a few bugs in the random.pareto docstring. Closes gh-4181.
|
| | |
| | |
| | |
| | | |
[ci skip]
|
|\ \ \
| | | |
| | | | |
DOC: some small fixes to the "Using Python as glue" section of the user ...
|
|/ / /
| | |
| | |
| | | |
[ci skip]
|
|\ \ \
| |_|/
|/| | |
BUG: Fix #4476 by adding datetime64 and timedelta64 types
|
| | |
| | |
| | |
| | |
| | |
| | | |
Add a testcase `test_fillvalue_datetime_timedelta` to class
`TestFillingValues` for the fix to bug #4476. See commit
216fd17 and pull request #5455.
|
|/ /
| |
| |
| |
| |
| |
| | |
This commit fixes bug #4476 by adding the codes for the datetime64 and
timedelta64 types to the `default_filler` dictionary in numpy.ma.core,
used by `default_fill_value`. Also adapt checking in the
`default_fill_value` to include code for timedelta64, not only datetime64.
|
|\ \
| | |
| | | |
BUG: linspace should return the same as arange when possible
|
| | |
| | |
| | |
| | | |
Fixes failures on other projects (scipy.signal) introduced by #5438
|
|\ \ \
| | | |
| | | | |
ENH: Improve arg handling & enhance test suite for `np.pad`
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | | |
BUG: fix ma.median used on ndarrays
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ndarrays have a data attribute pointing to the data buffer which leads
to the median working on a byte view instead of the actual type.
closes gh-5424
|
|\ \ \ \
| | | | |
| | | | | |
BUG: linspace handling of denormals, fixes #5437
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix typo in slogdet doc
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | | |
fix typo in slogdet docstring
"than" -> "then"
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TST: Update assert_array_almost_equal_nulp tests
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This fix addresses Issue #347.
All of the tests in this class were using random numbers generated
without a seed. This broke `test_simple` in a nondeterministic manner.
Rewrote all tests for this function. Instead of using random numbers,
well-defined arrays of widely varying amplitude were created instead.
Changed the array modification values so that the test arrays were
either just above or just below the NULP threshold.
Added tests for float64, float32, complex128, and complex64 dtypes, and
added both addition and subtraction tests. Tried to standardize the code
for all tests.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DOC: Reorganization request for Development Workflow docs
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The "Basic Workflow" section of the Development Workflow page was reorganized
to make it clearer to new users and remove/update old material.
Major changes:
- Moved the core developer notes. Core dev notes are confusing in basic usage
information. Updated a couple of the commands
- Added more commands and reorgaized the "New Feature Branch" section. Took
some text from "Rebasing" and moved it here, because it was redundant.
- Made many changes to the "Editing Workflow" to clarify commands. Moved some
git push stuff into this section as well.
- Moved pull request section to just after editing workflow. Removed outdated
images and simplified the text. Make code review requirements explicit.
- Moved rebasing and troubleshooting sections to the end. Could add more here
later.
- Links renamed and broken link removed.
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
DOC: Fix doc of seterrcall. Issue #4427
|
|/ / / / / |
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
Minor docstring fix
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
DOC: style fixes for random.multivariate_normal docstring.
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Special case matrix
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The changes are that they all preserve ndarray subtypes with the
exception of ravel, which still return 1-D arrays for backward
compatibility.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is a backward compatibility hack to avoid breaking scipy.sparse
after fixing ravel to respect subtypes. Subtypes are still respected
except in the case of matrices and subclasses of matrices.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is an ugly hack to preserve backwards compatibility for code
that uses matrices. It is needed since both diag and diagonal have
been changed to preserve subtypes otherwise.
Note that a.diagonal() still returns matrices when a is a matrix.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: remove NPY_NO_DEPRECATED_API define from f2py.
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | | |
See gh-5281 for discussion. With the defines in, compiling scipy 0.14.0 and
below isn't possible.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BLD: ensure OPT build environment variable is read
|
| | | | | | |
|
|/ / / / / |
|