| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
BUG: Fix logic in ndindex to match __init__ method. Fixes bug in ndindex((3,))
|
| | |
|
| | |
|
|\ \
| |/
|/| |
ENH: Allow 0-d indexes in np.take
|
| |
| |
| |
| |
| |
| |
| | |
The TakeFrom already supported this. This removes the check which
made it not possible and adds some tests for take.
Also add documentation and information to the release notes.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The issue was that the string value of scalar floating types equal to -0.0
lacked a trailing ".0".
>>> print np.float64(-0.0)
-0
The problem resulted from using val < 0 to check for a leading negative
sign. That expression evaluates false when val = -0.0, and the need to
append ".0" was not detected.
|
|\ \
| | |
| | | |
BUG: Fix segfault in np.result_type for None input.
|
| | |
| | |
| | |
| | |
| | | |
Makes behavior identical to np.dtype(None), which fits to how
the function works.
|
|/ / |
|
|\ \
| | |
| | | |
Remove scons support
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
These references were in MANIFEST.in, doc/summarize.py, release.sh, and
numpy/testing/noseclasses.py and involved scons files that have been
removed, mostly setupscons.py and setupsconsegg.py that were in the top
level.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This removes files and code supporting scons builds. After this change
numpy will only support builds using distutils or bento. The removal of
scons has been discussed on the list several times and a decision has been
made that scons support is no longer needed. This was originally discussed
for numpy 1.7 and because the distutils and bento methods are still
available we are skipping the usual deprecation period.
|
|\ \ \
| | | |
| | | | |
Fix for #2895 ndindex failing
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Fix ndindex for 0-d arrays.
Add tests for tuple arguments to ndindex
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Call to ndindex() with no arguments results in a ValueError exception, whereas before commit ca27396b, a call with no arguments was allowed.
Issue is due to unneeded check for shape tuple size.
|
|\ \ \ \
| |_|/ /
|/| | | |
Nonarray assignment regression for boolean indexing and 1d unsafe casting
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Also make sure right hand side is converted safely to the right
type if it is not an array though.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Enforcing the left hand side datatype for a non-array right hand side
argument in index assignments was the behavior before 1.7. and is the
general behaviour here. (note this means a non-array right hand side
checks for NaN, etc. if the left hand side is integer, but an array
right hand side does not)
|
|\ \ \ \
| | | | |
| | | | | |
remove a confusing docstring line
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ones_like:
"With default parameters, is equivalent to a.copy().fill(1)."
This is not technically true, because 'fill' returns None.
|
|\ \ \ \
| | | | |
| | | | | |
Fix typo in SVD usage example
|
| |/ / / |
|
|/ / / |
|
|/ /
| |
| |
| | |
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
|
|\ \
| |/
|/| |
TST: Add tests for constants.
|
| |
| |
| |
| |
| | |
Test the values of np.pi, np.e, and np.euler_gamma to make sure
they are correct to relative tolerance 1e-15.
|
|\ \
| | |
| | | |
BUG: Fix CheckStrides and strides setter checks for available memory
|
| | |
| | |
| | |
| | | |
Adding const and removing old comment.
|
| | |
| | |
| | |
| | |
| | | |
Also adds a test to check offset calculation is correct when
setting strides for a base array with negative strides.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This changes the logic of PyArray_CheckStrides to really check the
full extent the new array will have. It also changes the stride
setting to calculate the full real extent of the underlying array
without assuming (usually correctly) that the strides of the base
array are regular.
Add some tests for cases that previously failed.
This "closes Issue gh-2503"
|
|\ \ \
| | | |
| | | | |
Fix headers
|
| | | |
| | | |
| | | |
| | | | |
There was a chance that they could conflict with user defined macros.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The npy_config.h file used SIZEOF_DOUBLE and SIZEOF_LONG_DOUBLE, neither
of which was defined in the included config.h file. That was fixed by
including numpyconfig.h. Doing so made the code dealing with Apple type
sizes redundant as it is already present in numpyconfig.h, so it was
removed.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Some of these are probably new unprefixed macros, but adding them
makes for a bit more safety. The unprefixed macros will be deprecated
at some point, so this probably has no side effects.
|
| | | | |
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
The sources don't define NPY_NO_PREFIX and consequently none of the
unprefixed macros are defined. Using them can lead to some unexpected
results.
|